From: Rico Tzschichholz Date: Sat, 11 Jul 2020 16:29:42 +0000 (+0200) Subject: testrunner: Add more -Werror=* flags X-Git-Tag: 0.49.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e4228e3e1ff6240ca1865b589dcf446af4dfa3c;p=thirdparty%2Fvala.git testrunner: Add more -Werror=* flags --- diff --git a/configure.ac b/configure.ac index ee52f0440..87dbf8cfd 100644 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,7 @@ AC_SUBST(COVERAGE_LIBS) # Check supported compiler flags used in testrunner.sh TEST_EXTRA_CFLAGS="-Werror=init-self \ -Werror=implicit \ +-Werror=implicit-fallthrough \ -Werror=pointer-arith \ -Werror=redundant-decls \ -Werror=return-type \ @@ -126,6 +127,7 @@ TEST_EXTRA_CFLAGS="-Werror=init-self \ -Werror=int-to-pointer-cast \ -Werror=pointer-to-int-cast \ -Werror=compare-distinct-pointer-types \ +-Werror=empty-body \ -Wformat=2 \ -Werror=format-security \ -Werror=format-nonliteral \ @@ -134,8 +136,11 @@ TEST_EXTRA_CFLAGS="-Werror=init-self \ -Werror=duplicated-cond \ -Werror=declaration-after-statement \ -Werror=maybe-uninitialized \ +-Werror=missing-braces \ +-Werror=missing-declarations \ -Werror=missing-prototypes \ -Werror=strict-prototypes \ +-Werror=address \ -Werror=array-bounds \ -Werror=enum-conversion"