From: Taylor R Campbell Date: Thu, 8 Nov 2018 16:17:41 +0000 (+0000) Subject: Add -Wunreachable-code and -Wwrite-strings. X-Git-Tag: mit-scheme-pucked-10.1.2~16^2~116^2~5 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=78d17d14d34a14d3b6a7e98dd5aeeb06e6e8cd0e;p=mit-scheme.git Add -Wunreachable-code and -Wwrite-strings. --- 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