Merge all the warning flags into the same list.
authorTaylor R Campbell <campbell@mumble.net>
Thu, 8 Nov 2018 16:16:25 +0000 (16:16 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Thu, 8 Nov 2018 16:16:25 +0000 (16:16 +0000)
src/microcode/configure.ac

index 300baf74f8f7dea92bf8d4ce019897c155737a5b..ea4af189f548823cb41a8b4f4aa837b4a1ab5632 100644 (file)
@@ -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"