diff options
author | David Goldblatt <davidgoldblatt@fb.com> | 2017-04-10 13:26:21 -0700 |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2017-04-10 17:12:36 -0700 |
commit | 8209df24ea5bc1dcb560ac64cf2b4ff552f8c9ff (patch) | |
tree | 995a871f63ad3f8e17a4ac7023a36fea8abb8c2b /scripts/gen_travis.py | |
parent | 701daa5298b3befe2aff05ce590533165abb9ba4 (diff) |
Turn on -Werror for travis CI builds
Diffstat (limited to 'scripts/gen_travis.py')
-rwxr-xr-x | scripts/gen_travis.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gen_travis.py b/scripts/gen_travis.py index 93fe3283..35a10ee6 100755 --- a/scripts/gen_travis.py +++ b/scripts/gen_travis.py @@ -72,7 +72,9 @@ for unusual_combination in unusual_combinations_to_test: if os == 'osx' and '--enable-prof' in configure_flags: continue - env_string = '{} COMPILER_FLAGS="{}" CONFIGURE_FLAGS="{}"'.format( + # We get some spurious errors when -Warray-bounds is enabled. + env_string = ('{} COMPILER_FLAGS="{}" CONFIGURE_FLAGS="{}" ' + 'EXTRA_CFLAGS="-Werror -Wno-array-bounds"').format( compilers, " ".join(compiler_flags), " ".join(configure_flags)) include_rows += ' - os: %s\n' % os |