Mark generated functions unused (applies to safestack, lhash, sparse_array)
authorRichard Levitte <levitte@openssl.org>
Fri, 15 Feb 2019 07:06:36 +0000 (08:06 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 15 Feb 2019 10:46:05 +0000 (11:46 +0100)
commited48d2032d29a82c6aebbddf0fbf530ac2d2521d
treee5838e539c3e6c938efc8521c92b303fb8b878ac
parent1b25dc0cf3674dadab8ff13c8de1679910c047d2
Mark generated functions unused (applies to safestack, lhash, sparse_array)

safestack.h, lhash.h and sparse_array.h all define macros to generate
a full API for the containers as static inline functions.  This
potentially generates unused code, which some compilers may complain
about.

We therefore need to mark those generated functions as unused, so the
compiler knows that we know, and stops complaining about it.

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

(cherry picked from commit 48fe4ce104df060dd5d2b4188a56eb554d94d819)
include/openssl/e_os2.h
include/openssl/lhash.h
include/openssl/safestack.h