From c7bee58156162d7faa5269011e51ac838785e058 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 15 May 2014 11:25:59 +0000 Subject: Stop being a dummy... presumably these are left overs from pedantic mode that were not wrapped with #if PEDANTIC. ok miod@ --- src/lib/libcrypto/bn/bn_depr.c | 2 -- src/lib/libcrypto/dh/dh_depr.c | 2 -- src/lib/libcrypto/dsa/dsa_depr.c | 2 -- src/lib/libcrypto/ec/ecp_nistp224.c | 2 -- src/lib/libcrypto/ec/ecp_nistp256.c | 2 -- src/lib/libcrypto/ec/ecp_nistp521.c | 2 -- src/lib/libcrypto/ec/ecp_nistputil.c | 2 -- src/lib/libcrypto/evp/e_old.c | 4 +--- src/lib/libcrypto/rsa/rsa_depr.c | 6 +----- src/lib/libssl/src/crypto/bn/bn_depr.c | 2 -- src/lib/libssl/src/crypto/dh/dh_depr.c | 2 -- src/lib/libssl/src/crypto/dsa/dsa_depr.c | 2 -- src/lib/libssl/src/crypto/ec/ecp_nistp224.c | 2 -- src/lib/libssl/src/crypto/ec/ecp_nistp256.c | 2 -- src/lib/libssl/src/crypto/ec/ecp_nistp521.c | 2 -- src/lib/libssl/src/crypto/ec/ecp_nistputil.c | 2 -- src/lib/libssl/src/crypto/evp/e_old.c | 4 +--- src/lib/libssl/src/crypto/rsa/rsa_depr.c | 6 +----- 18 files changed, 4 insertions(+), 44 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/bn/bn_depr.c b/src/lib/libcrypto/bn/bn_depr.c index e4d7f33967..6da0d7cb22 100644 --- a/src/lib/libcrypto/bn/bn_depr.c +++ b/src/lib/libcrypto/bn/bn_depr.c @@ -62,8 +62,6 @@ #include "bn_lcl.h" #include -static void *dummy = &dummy; - #ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, diff --git a/src/lib/libcrypto/dh/dh_depr.c b/src/lib/libcrypto/dh/dh_depr.c index acc05f252c..15fcca72d8 100644 --- a/src/lib/libcrypto/dh/dh_depr.c +++ b/src/lib/libcrypto/dh/dh_depr.c @@ -61,8 +61,6 @@ #include #include -static void *dummy=&dummy; - #ifndef OPENSSL_NO_DEPRECATED DH *DH_generate_parameters(int prime_len, int generator, void (*callback)(int,int,void *), void *cb_arg) diff --git a/src/lib/libcrypto/dsa/dsa_depr.c b/src/lib/libcrypto/dsa/dsa_depr.c index f2da680eb4..3c9958fe3b 100644 --- a/src/lib/libcrypto/dsa/dsa_depr.c +++ b/src/lib/libcrypto/dsa/dsa_depr.c @@ -69,8 +69,6 @@ #define HASH EVP_sha1() #endif -static void *dummy=&dummy; - #ifndef OPENSSL_NO_SHA #include diff --git a/src/lib/libcrypto/ec/ecp_nistp224.c b/src/lib/libcrypto/ec/ecp_nistp224.c index 29ff2fc1f1..bd8f65b097 100644 --- a/src/lib/libcrypto/ec/ecp_nistp224.c +++ b/src/lib/libcrypto/ec/ecp_nistp224.c @@ -1697,6 +1697,4 @@ ec_GFp_nistp224_have_precompute_mult(const EC_GROUP * group) return 0; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libcrypto/ec/ecp_nistp256.c b/src/lib/libcrypto/ec/ecp_nistp256.c index 85f370cadd..558c29c5ba 100644 --- a/src/lib/libcrypto/ec/ecp_nistp256.c +++ b/src/lib/libcrypto/ec/ecp_nistp256.c @@ -2243,6 +2243,4 @@ ec_GFp_nistp256_have_precompute_mult(const EC_GROUP * group) else return 0; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libcrypto/ec/ecp_nistp521.c b/src/lib/libcrypto/ec/ecp_nistp521.c index fab2224345..0c40f08346 100644 --- a/src/lib/libcrypto/ec/ecp_nistp521.c +++ b/src/lib/libcrypto/ec/ecp_nistp521.c @@ -2117,6 +2117,4 @@ ec_GFp_nistp521_have_precompute_mult(const EC_GROUP * group) return 0; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libcrypto/ec/ecp_nistputil.c b/src/lib/libcrypto/ec/ecp_nistputil.c index 28fecf8b6e..efd6f368c1 100644 --- a/src/lib/libcrypto/ec/ecp_nistputil.c +++ b/src/lib/libcrypto/ec/ecp_nistputil.c @@ -204,6 +204,4 @@ ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsig *sign = s & 1; *digit = d; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libcrypto/evp/e_old.c b/src/lib/libcrypto/evp/e_old.c index 6d63ea4269..c84bc29bf6 100644 --- a/src/lib/libcrypto/evp/e_old.c +++ b/src/lib/libcrypto/evp/e_old.c @@ -56,9 +56,7 @@ * */ -#ifdef OPENSSL_NO_DEPRECATED -static void *dummy = &dummy; -#else +#ifndef OPENSSL_NO_DEPRECATED #include diff --git a/src/lib/libcrypto/rsa/rsa_depr.c b/src/lib/libcrypto/rsa/rsa_depr.c index a859ded987..1da0dd9087 100644 --- a/src/lib/libcrypto/rsa/rsa_depr.c +++ b/src/lib/libcrypto/rsa/rsa_depr.c @@ -62,11 +62,7 @@ #include #include -#ifdef OPENSSL_NO_DEPRECATED - -static void *dummy=&dummy; - -#else +#ifndef OPENSSL_NO_DEPRECATED RSA *RSA_generate_key(int bits, unsigned long e_value, void (*callback)(int,int,void *), void *cb_arg) diff --git a/src/lib/libssl/src/crypto/bn/bn_depr.c b/src/lib/libssl/src/crypto/bn/bn_depr.c index e4d7f33967..6da0d7cb22 100644 --- a/src/lib/libssl/src/crypto/bn/bn_depr.c +++ b/src/lib/libssl/src/crypto/bn/bn_depr.c @@ -62,8 +62,6 @@ #include "bn_lcl.h" #include -static void *dummy = &dummy; - #ifndef OPENSSL_NO_DEPRECATED BIGNUM * BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, diff --git a/src/lib/libssl/src/crypto/dh/dh_depr.c b/src/lib/libssl/src/crypto/dh/dh_depr.c index acc05f252c..15fcca72d8 100644 --- a/src/lib/libssl/src/crypto/dh/dh_depr.c +++ b/src/lib/libssl/src/crypto/dh/dh_depr.c @@ -61,8 +61,6 @@ #include #include -static void *dummy=&dummy; - #ifndef OPENSSL_NO_DEPRECATED DH *DH_generate_parameters(int prime_len, int generator, void (*callback)(int,int,void *), void *cb_arg) diff --git a/src/lib/libssl/src/crypto/dsa/dsa_depr.c b/src/lib/libssl/src/crypto/dsa/dsa_depr.c index f2da680eb4..3c9958fe3b 100644 --- a/src/lib/libssl/src/crypto/dsa/dsa_depr.c +++ b/src/lib/libssl/src/crypto/dsa/dsa_depr.c @@ -69,8 +69,6 @@ #define HASH EVP_sha1() #endif -static void *dummy=&dummy; - #ifndef OPENSSL_NO_SHA #include diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistp224.c b/src/lib/libssl/src/crypto/ec/ecp_nistp224.c index 29ff2fc1f1..bd8f65b097 100644 --- a/src/lib/libssl/src/crypto/ec/ecp_nistp224.c +++ b/src/lib/libssl/src/crypto/ec/ecp_nistp224.c @@ -1697,6 +1697,4 @@ ec_GFp_nistp224_have_precompute_mult(const EC_GROUP * group) return 0; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistp256.c b/src/lib/libssl/src/crypto/ec/ecp_nistp256.c index 85f370cadd..558c29c5ba 100644 --- a/src/lib/libssl/src/crypto/ec/ecp_nistp256.c +++ b/src/lib/libssl/src/crypto/ec/ecp_nistp256.c @@ -2243,6 +2243,4 @@ ec_GFp_nistp256_have_precompute_mult(const EC_GROUP * group) else return 0; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistp521.c b/src/lib/libssl/src/crypto/ec/ecp_nistp521.c index fab2224345..0c40f08346 100644 --- a/src/lib/libssl/src/crypto/ec/ecp_nistp521.c +++ b/src/lib/libssl/src/crypto/ec/ecp_nistp521.c @@ -2117,6 +2117,4 @@ ec_GFp_nistp521_have_precompute_mult(const EC_GROUP * group) return 0; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libssl/src/crypto/ec/ecp_nistputil.c b/src/lib/libssl/src/crypto/ec/ecp_nistputil.c index 28fecf8b6e..efd6f368c1 100644 --- a/src/lib/libssl/src/crypto/ec/ecp_nistputil.c +++ b/src/lib/libssl/src/crypto/ec/ecp_nistputil.c @@ -204,6 +204,4 @@ ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsig *sign = s & 1; *digit = d; } -#else -static void *dummy = &dummy; #endif diff --git a/src/lib/libssl/src/crypto/evp/e_old.c b/src/lib/libssl/src/crypto/evp/e_old.c index 6d63ea4269..c84bc29bf6 100644 --- a/src/lib/libssl/src/crypto/evp/e_old.c +++ b/src/lib/libssl/src/crypto/evp/e_old.c @@ -56,9 +56,7 @@ * */ -#ifdef OPENSSL_NO_DEPRECATED -static void *dummy = &dummy; -#else +#ifndef OPENSSL_NO_DEPRECATED #include diff --git a/src/lib/libssl/src/crypto/rsa/rsa_depr.c b/src/lib/libssl/src/crypto/rsa/rsa_depr.c index a859ded987..1da0dd9087 100644 --- a/src/lib/libssl/src/crypto/rsa/rsa_depr.c +++ b/src/lib/libssl/src/crypto/rsa/rsa_depr.c @@ -62,11 +62,7 @@ #include #include -#ifdef OPENSSL_NO_DEPRECATED - -static void *dummy=&dummy; - -#else +#ifndef OPENSSL_NO_DEPRECATED RSA *RSA_generate_key(int bits, unsigned long e_value, void (*callback)(int,int,void *), void *cb_arg) -- cgit v1.2.3-55-g6feb