Stop being a dummy... presumably these are left overs from pedantic mode
authorjsing <jsing@openbsd.org>
Thu, 15 May 2014 11:25:59 +0000 (11:25 +0000)
committerjsing <jsing@openbsd.org>
Thu, 15 May 2014 11:25:59 +0000 (11:25 +0000)
that were not wrapped with #if PEDANTIC.

ok miod@

18 files changed:
lib/libcrypto/bn/bn_depr.c
lib/libcrypto/dh/dh_depr.c
lib/libcrypto/dsa/dsa_depr.c
lib/libcrypto/ec/ecp_nistp224.c
lib/libcrypto/ec/ecp_nistp256.c
lib/libcrypto/ec/ecp_nistp521.c
lib/libcrypto/ec/ecp_nistputil.c
lib/libcrypto/evp/e_old.c
lib/libcrypto/rsa/rsa_depr.c
lib/libssl/src/crypto/bn/bn_depr.c
lib/libssl/src/crypto/dh/dh_depr.c
lib/libssl/src/crypto/dsa/dsa_depr.c
lib/libssl/src/crypto/ec/ecp_nistp224.c
lib/libssl/src/crypto/ec/ecp_nistp256.c
lib/libssl/src/crypto/ec/ecp_nistp521.c
lib/libssl/src/crypto/ec/ecp_nistputil.c
lib/libssl/src/crypto/evp/e_old.c
lib/libssl/src/crypto/rsa/rsa_depr.c

index e4d7f33..6da0d7c 100644 (file)
@@ -62,8 +62,6 @@
 #include "bn_lcl.h"
 #include <openssl/rand.h>
 
-static void *dummy = &dummy;
-
 #ifndef OPENSSL_NO_DEPRECATED
 BIGNUM *
 BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add,
index acc05f2..15fcca7 100644 (file)
@@ -61,8 +61,6 @@
 #include <openssl/bn.h>
 #include <openssl/dh.h>
 
-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)
index f2da680..3c9958f 100644 (file)
@@ -69,8 +69,6 @@
 #define HASH    EVP_sha1()
 #endif 
 
-static void *dummy=&dummy;
-
 #ifndef OPENSSL_NO_SHA
 
 #include <stdio.h>
index 29ff2fc..bd8f65b 100644 (file)
@@ -1697,6 +1697,4 @@ ec_GFp_nistp224_have_precompute_mult(const EC_GROUP * group)
                return 0;
 }
 
-#else
-static void *dummy = &dummy;
 #endif
index 85f370c..558c29c 100644 (file)
@@ -2243,6 +2243,4 @@ ec_GFp_nistp256_have_precompute_mult(const EC_GROUP * group)
        else
                return 0;
 }
-#else
-static void *dummy = &dummy;
 #endif
index fab2224..0c40f08 100644 (file)
@@ -2117,6 +2117,4 @@ ec_GFp_nistp521_have_precompute_mult(const EC_GROUP * group)
                return 0;
 }
 
-#else
-static void *dummy = &dummy;
 #endif
index 28fecf8..efd6f36 100644 (file)
@@ -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
index 6d63ea4..c84bc29 100644 (file)
@@ -56,9 +56,7 @@
  *
  */
 
-#ifdef OPENSSL_NO_DEPRECATED
-static void *dummy = &dummy;
-#else
+#ifndef OPENSSL_NO_DEPRECATED
 
 #include <openssl/evp.h>
 
index a859ded..1da0dd9 100644 (file)
 #include <openssl/bn.h>
 #include <openssl/rsa.h>
 
-#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)
index e4d7f33..6da0d7c 100644 (file)
@@ -62,8 +62,6 @@
 #include "bn_lcl.h"
 #include <openssl/rand.h>
 
-static void *dummy = &dummy;
-
 #ifndef OPENSSL_NO_DEPRECATED
 BIGNUM *
 BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add,
index acc05f2..15fcca7 100644 (file)
@@ -61,8 +61,6 @@
 #include <openssl/bn.h>
 #include <openssl/dh.h>
 
-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)
index f2da680..3c9958f 100644 (file)
@@ -69,8 +69,6 @@
 #define HASH    EVP_sha1()
 #endif 
 
-static void *dummy=&dummy;
-
 #ifndef OPENSSL_NO_SHA
 
 #include <stdio.h>
index 29ff2fc..bd8f65b 100644 (file)
@@ -1697,6 +1697,4 @@ ec_GFp_nistp224_have_precompute_mult(const EC_GROUP * group)
                return 0;
 }
 
-#else
-static void *dummy = &dummy;
 #endif
index 85f370c..558c29c 100644 (file)
@@ -2243,6 +2243,4 @@ ec_GFp_nistp256_have_precompute_mult(const EC_GROUP * group)
        else
                return 0;
 }
-#else
-static void *dummy = &dummy;
 #endif
index fab2224..0c40f08 100644 (file)
@@ -2117,6 +2117,4 @@ ec_GFp_nistp521_have_precompute_mult(const EC_GROUP * group)
                return 0;
 }
 
-#else
-static void *dummy = &dummy;
 #endif
index 28fecf8..efd6f36 100644 (file)
@@ -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
index 6d63ea4..c84bc29 100644 (file)
@@ -56,9 +56,7 @@
  *
  */
 
-#ifdef OPENSSL_NO_DEPRECATED
-static void *dummy = &dummy;
-#else
+#ifndef OPENSSL_NO_DEPRECATED
 
 #include <openssl/evp.h>
 
index a859ded..1da0dd9 100644 (file)
 #include <openssl/bn.h>
 #include <openssl/rsa.h>
 
-#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)