Revert "Configure: stop forcing use of DEFINE macros in headers"
authorRichard Levitte <levitte@openssl.org>
Fri, 15 Feb 2019 10:48:24 +0000 (11:48 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 26 Feb 2019 21:47:18 +0000 (22:47 +0100)
Github PR #8246 provides a better solution to the problem.

This reverts commit f11ffa505f8a9345145a26a05bf77b012b6941bd.

[extended tests]

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/8247)

Configure

index 03053bc0c31603d158c5f0e86e7e2566cfe7b2f5..83e7e17863daf41d45c23413ae151f3b6d65d022 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -145,8 +145,6 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED"
 #       -Wlanguage-extension-token -- no, we use asm()
 #       -Wunused-macros -- no, too tricky for BN and _XOPEN_SOURCE etc
 #       -Wextended-offsetof -- no, needed in CMS ASN1 code
-#       -Wunused-function -- no, it forces header use of safestack et al
-#                            DEFINE macros
 my $clang_devteam_warn = ""
         . " -Wswitch-default"
         . " -Wno-parentheses-equality"
@@ -156,7 +154,6 @@ my $clang_devteam_warn = ""
         . " -Wincompatible-pointer-types-discards-qualifiers"
         . " -Wmissing-variable-declarations"
         . " -Wno-unknown-warning-option"
-        . " -Wno-unused-function"
         ;
 
 # This adds backtrace information to the memory leak info.  Is only used