Turn on -Werror for travis CI builds

This commit is contained in:
David Goldblatt
2017-04-10 13:26:21 -07:00
committed by David Goldblatt
parent 701daa5298
commit 8209df24ea
2 changed files with 31 additions and 29 deletions

View File

@@ -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