turn on -Werror generally

This moves us to being warning free by default rather than being
free of some specific warnings.  This doesn't turn on any new
warnings though.

Change-Id: I60bb79d1790e85ec4618b3548dad6de5d9bf8ab5
Reviewed-on: https://chromium-review.googlesource.com/438565
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Mike Frysinger 2017-02-06 15:48:27 -05:00
parent cc1deb4452
commit 93c447a0de
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@ endif
if GCC if GCC
# These are good warnings to be treated as errors # These are good warnings to be treated as errors
AM_CXXFLAGS += \ AM_CXXFLAGS += \
-Werror \
-Werror=missing-braces \ -Werror=missing-braces \
-Werror=non-virtual-dtor \ -Werror=non-virtual-dtor \
-Werror=overloaded-virtual \ -Werror=overloaded-virtual \

View file

@ -131,6 +131,7 @@ host_triplet = @host@
# These are good warnings to be treated as errors # These are good warnings to be treated as errors
@GCC_TRUE@am__append_2 = \ @GCC_TRUE@am__append_2 = \
@GCC_TRUE@ -Werror \
@GCC_TRUE@ -Werror=missing-braces \ @GCC_TRUE@ -Werror=missing-braces \
@GCC_TRUE@ -Werror=non-virtual-dtor \ @GCC_TRUE@ -Werror=non-virtual-dtor \
@GCC_TRUE@ -Werror=overloaded-virtual \ @GCC_TRUE@ -Werror=overloaded-virtual \