From 61ad014fde9714ceef354ac740272c12405b5d11 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 May 2018 19:23:03 +0300 Subject: Disable most of warnings for GCC compiler class --- libpq/buildfile | 8 +++++--- 1 file 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 -- cgit v1.1