summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPeter Eisentraut2012-11-16 05:35:06 +0000
committerPeter Eisentraut2012-11-16 05:35:06 +0000
commit67c03c6f3ca3726fd99488b497432dea21ab8e2a (patch)
treedf814aca8cfb85016145e54781dcb89ba6be103c /configure.in
parent1746ba92565d130c3b5c6fc285ac57f00cf6bf75 (diff)
Add -Wlogical-op to standard compiler flags, if supported
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 2dee4b392b..e691b1d0bf 100644
--- a/configure.in
+++ b/configure.in
@@ -410,6 +410,7 @@ if test "$GCC" = yes -a "$ICC" = no; then
# These work in some but not all gcc versions
PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement])
PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels])
+ PGAC_PROG_CC_CFLAGS_OPT([-Wlogical-op])
PGAC_PROG_CC_CFLAGS_OPT([-Wmissing-format-attribute])
# This was included in -Wall/-Wformat in older GCC versions
PGAC_PROG_CC_CFLAGS_OPT([-Wformat-security])