Configure: stop forcing use of DEFINE macros in headers
authorRichard Levitte <levitte@openssl.org>
Thu, 14 Feb 2019 08:25:40 +0000 (09:25 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 Feb 2019 08:47:17 +0000 (09:47 +0100)
commitcd272eeee23b5866b281303550917287e78375c1
tree62bb5bf6bd51271c3b6308e0dfe57e1d31cbd810
parent7ee28a61cd6d9f704fc672904a14a764f618aa7c
Configure: stop forcing use of DEFINE macros in headers

There are times when one might want to use something like
DEFINE_STACK_OF in a .c file, because it defines a stack for a type
defined in that .c file.  Unfortunately, when configuring with
`--strict-warnings`, clang aggressively warn about unused functions in
such cases, which forces the use of such DEFINE macros to header
files.

We therefore disable this warning from the `--strict-warnings`
definition for clang.

(note for the curious: `-Wunused-function` is enabled via `-Wall`)

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8234)

(cherry picked from commit f11ffa505f8a9345145a26a05bf77b012b6941bd)
Configure