From 78d17d14d34a14d3b6a7e98dd5aeeb06e6e8cd0e Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Thu, 8 Nov 2018 16:17:41 +0000 Subject: [PATCH] Add -Wunreachable-code and -Wwrite-strings. --- src/microcode/configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index ea4af189f..b66ba34f1 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -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 -- 2.25.1