From 29ccb1f313d00dd3becb3f2c510388a7e95355d0 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Thu, 8 Nov 2018 16:16:25 +0000 Subject: [PATCH] Merge all the warning flags into the same list. --- src/microcode/configure.ac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 300baf74f..ea4af189f 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -208,22 +208,27 @@ if test ${GCC} = yes; then CFLAGS="-O0 -g -DENABLE_DEBUGGING_TOOLS ${CFLAGS}" LDFLAGS="${LDFLAGS} -g" fi - CFLAGS="-Wall -Wundef -Wpointer-arith -Winline ${CFLAGS}" - CFLAGS="-Wstrict-prototypes -Wnested-externs -Wredundant-decls ${CFLAGS}" CFLAGS_WERROR=-Werror for flag in \ + -Wall \ -Wclobbered \ -Wempty-body \ -Wignored-qualifiers \ -Wimplicit-fallthrough \ + -Winline \ -Wmissing-field-initializers \ -Wmissing-parameter-type \ + -Wnested-externs \ -Wold-style-declaration \ -Woverride-init \ + -Wpointer-arith \ + -Wredundant-decls \ + -Wshift-negative-value \ + -Wstrict-prototypes \ -Wtype-limits \ + -Wundef \ -Wuninitialized \ - -Wshift-negative-value \ ; do AC_MSG_CHECKING([for compiler warning $flag]) SAVED_CFLAGS="$CFLAGS" -- 2.25.1