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:44:35 +0000 (11:44 +0100)
commit48fe4ce104df060dd5d2b4188a56eb554d94d819
treecf10b38186c0b540ba2ad7f165e72ba9ae7f43e3
parent088dfa133561d7613b9391a56ddbce58f32c934a
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)
crypto/include/internal/sparse_array.h
include/openssl/e_os2.h
include/openssl/lhash.h
include/openssl/safestack.h