Disable -Wlogical-op for gcc 4.4 or lower.

It seems to be broken before 4.5.
This commit is contained in:
Bill Currie 2011-03-21 21:54:00 +09:00
parent 1219df0872
commit b812c0e235

View file

@ -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