From: Sebastian Harl Date: Mon, 4 Mar 2013 17:55:03 +0000 (+0100) Subject: configure: Don't use -Wunreachable-code. X-Git-Tag: sysdb-0.1.0~438^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae61583dd629eacc0c8257380cf16553cc805156;p=sysdb.git configure: Don't use -Wunreachable-code. This seems to cause errors with some versions of GCC when using assertions that (after optimization, inlining, and code-analysis) will never be true. --- diff --git a/configure.ac b/configure.ac index e9e8a3c..148b76d 100644 --- a/configure.ac +++ b/configure.ac @@ -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