Code

configure: Don't use -Wunreachable-code.
authorSebastian Harl <sh@tokkee.org>
Mon, 4 Mar 2013 17:55:03 +0000 (18:55 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 4 Mar 2013 17:55:03 +0000 (18:55 +0100)
This seems to cause errors with some versions of GCC when using assertions
that (after optimization, inlining, and code-analysis) will never be true.

configure.ac

index e9e8a3c8956ece3f5b99101ba7af836455c6ae5a..148b76dbf5089f2710a9a5f153a3ad551014ae18 100644 (file)
@@ -171,8 +171,7 @@ if test "x$enable_strict_checks" = "xyes"; then
                        -Wmissing-prototypes \
                        -Wpointer-arith \
                        -Wshadow \
-                       -Wstrict-prototypes \
-                       -Wunreachable-code; do
+                       -Wstrict-prototypes; do
                AC_MSG_CHECKING([whether $CC accepts $flag])
 
                if test_cc_flags $flag; then