summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-24 16:23:03 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-24 16:23:03 (GMT)
commit61ad014fde9714ceef354ac740272c12405b5d11 (patch)
treed8cf8553a8798271c5bde0b02c0849c1f5674e13
parentf4ba3a52a814fb33c2a4f698ea52cb757313da64 (diff)
Disable most of warnings for GCC compiler class
-rw-r--r--libpq/buildfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/libpq/buildfile b/libpq/buildfile
index b23fe13..7b5a2c0 100644
--- a/libpq/buildfile
+++ b/libpq/buildfile
@@ -92,10 +92,12 @@ elif ($c.class == 'gcc')
#
c.coptions += -fno-strict-aliasing -fwrapv
- # Disable warnings that pop up with -W -Wall.
+ # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem to
+ # care about these and it is not easy to disable specific warnings in a way
+ # that works across compilers/version (some -Wno-* options are only
+ # recognized in newer versions).
#
- c.coptions += -Wno-unused-parameter -Wno-missing-field-initializers \
- -Wno-sign-compare -Wno-unused-command-line-argument
+ cc.coptions += -Wno-all -Wno-extra
}
# Define SYSCONFDIR macro. This path is used as a last resort for the