From f44903a428cc63ce88bfba26e8e4e2e9b21f058d Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Fri, 14 Apr 2017 11:53:04 -0500 Subject: Address some -Wold-style-declaration warnings gcc's -Wextra pulls in -Wold-style-declaration, which triggers when a declaration has a storage-class specifier as a non-initial qualifier. The ISO C formal grammar requires the storage-class to be the first component of the declaration, if present. Seeint as the register storage-class specifier does not really have any effect anymore with modern compilers, remove it entirely while we're here, instead of fixing up the order. Interestingly, the gcc devteam warnings do not pull in -Wextra, though the clang ones do. [extended tests] Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3239) --- crypto/include/internal/bn_dh.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/include') diff --git a/crypto/include/internal/bn_dh.h b/crypto/include/internal/bn_dh.h index b4bca40c58..f49f039835 100644 --- a/crypto/include/internal/bn_dh.h +++ b/crypto/include/internal/bn_dh.h @@ -8,9 +8,9 @@ */ #define declare_dh_bn(x) \ - const extern BIGNUM _bignum_dh##x##_p; \ - const extern BIGNUM _bignum_dh##x##_g; \ - const extern BIGNUM _bignum_dh##x##_q; + extern const BIGNUM _bignum_dh##x##_p; \ + extern const BIGNUM _bignum_dh##x##_g; \ + extern const BIGNUM _bignum_dh##x##_q; declare_dh_bn(1024_160) declare_dh_bn(2048_224) -- cgit v1.2.3