Add -Wunreachable-code and -Wwrite-strings.
authorTaylor R Campbell <campbell@mumble.net>
Thu, 8 Nov 2018 16:17:41 +0000 (16:17 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Thu, 8 Nov 2018 16:17:41 +0000 (16:17 +0000)
src/microcode/configure.ac

index ea4af189f548823cb41a8b4f4aa837b4a1ab5632..b66ba34f18dca393628c0be865b3b07426319cf8 100644 (file)
@@ -229,6 +229,8 @@ if test ${GCC} = yes; then
        -Wtype-limits \
        -Wundef \
        -Wuninitialized \
+       -Wunreachable-code \
+       -Wwrite-strings \
        ; do
        AC_MSG_CHECKING([for compiler warning $flag])
        SAVED_CFLAGS="$CFLAGS"
@@ -240,7 +242,7 @@ if test ${GCC} = yes; then
     done
 
     # other possibilities:
-    # -Wmissing-prototypes -Wunreachable-code -Wwrite-strings
+    # -Wmissing-prototypes
 fi
 FOO=`${INSTALL} --help 2> /dev/null | ${FGREP} -e --preserve-timestamps`
 if test "x${FOO}" != x; then