Remove duplicates from clang_devteam_warnings
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 1 May 2017 17:39:20 +0000 (12:39 -0500)
committerRich Salz <rsalz@openssl.org>
Tue, 20 Jun 2017 17:35:33 +0000 (13:35 -0400)
Since the clang_devteam_warnings are appended to the gcc_devteam_warnings
when strict-warnings are requested, any items present in both the gcc
and clang variables will be duplicated in the cflags used for clang builds.
Remove the extra copy from the clang-specific flags in favor of the
gcc_devteam_warnings that are used for all strict-warnings builds.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3239)
(cherry picked from commit 96db26919d5caff2db6340354a026f56dc6f09da)

[extended tests]

Configure

index e55db22d44e8cd7adf7d20adfbc0f10c6e403604..33d23921a88132ef8a4a7eba7c5f1b7918c3562b 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -138,15 +138,11 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED"
 #       -Wextended-offsetof -- no, needed in CMS ASN1 code
 my $clang_devteam_warn = ""
         . " -Qunused-arguments"
-        . " -Wextra"
-        . " -Wno-unused-parameter"
-        . " -Wno-missing-field-initializers"
         . " -Wno-language-extension-token"
         . " -Wno-extended-offsetof"
         . " -Wconditional-uninitialized"
         . " -Wincompatible-pointer-types-discards-qualifiers"
         . " -Wmissing-variable-declarations"
-        . " -Wundef"
         ;
 
 # This adds backtrace information to the memory leak info.  Is only used