From b812c0e235416718fcf4d34f723d2700e4c7c27b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Mar 2011 21:54:00 +0900 Subject: [PATCH] Disable -Wlogical-op for gcc 4.4 or lower. It seems to be broken before 4.5. --- config.d/compiling.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.d/compiling.m4 b/config.d/compiling.m4 index b267a88d6..3b5abd9d3 100644 --- a/config.d/compiling.m4 +++ b/config.d/compiling.m4 @@ -177,7 +177,9 @@ if test "x$check_pipe" = xyes; then QF_CC_OPTION(-pipe) fi QF_CC_OPTION(-Wsign-compare) -QF_CC_OPTION(-Wlogical-op) +if test $CC_MAJ -gt 4 -o $CC_MAJ -eq 4 -a $CC_MIN -ge 5; then + QF_CC_OPTION(-Wlogical-op) +fi QF_CC_OPTION_TEST([-fvisibility=hidden], [VISIBILITY=-fvisibility=hidden]) dnl QuakeForge uses lots of BCPL-style (//) comments, which can cause problems