diff options
author | Andy Polyakov <appro@openssl.org> | 2016-04-06 12:47:35 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-04-07 21:18:00 +0200 |
commit | 463a7b8cb0a449512448155a477f1460d8c951d9 (patch) | |
tree | 89baa5628a0eeee759ecad222b8bc0213275772e /crypto | |
parent | c32cbe97873bf919dc4d1bc332e4758ee6caea78 (diff) | |
download | openssl-463a7b8cb0a449512448155a477f1460d8c951d9.tar.gz |
Clean-up *_DEBUG options.
Since NDEBUG is defined unconditionally on command line for release
builds, we can omit *_DEBUG options in favour of effective "all-on"
in debug builds exercised though CI.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/aes/aes_core.c | 5 | ||||
-rw-r--r-- | crypto/aes/aes_ecb.c | 5 | ||||
-rw-r--r-- | crypto/aes/aes_x86core.c | 5 | ||||
-rw-r--r-- | crypto/bio/b_print.c | 7 | ||||
-rw-r--r-- | crypto/blake2/blake2b.c | 5 | ||||
-rw-r--r-- | crypto/blake2/blake2s.c | 5 | ||||
-rw-r--r-- | crypto/bn/bn_asm.c | 5 | ||||
-rw-r--r-- | crypto/bn/bn_lib.c | 5 | ||||
-rw-r--r-- | crypto/bn/bn_mul.c | 5 |
9 files changed, 0 insertions, 47 deletions
diff --git a/crypto/aes/aes_core.c b/crypto/aes/aes_core.c index 326cc569ca..837d4feb9f 100644 --- a/crypto/aes/aes_core.c +++ b/crypto/aes/aes_core.c @@ -27,11 +27,6 @@ /* Note: rewritten a little bit to provide error control and an OpenSSL- compatible API */ -#ifndef AES_DEBUG -# ifndef NDEBUG -# define NDEBUG -# endif -#endif #include <assert.h> #include <stdlib.h> diff --git a/crypto/aes/aes_ecb.c b/crypto/aes/aes_ecb.c index 61cb0e7358..6639c783c4 100644 --- a/crypto/aes/aes_ecb.c +++ b/crypto/aes/aes_ecb.c @@ -48,11 +48,6 @@ * */ -#ifndef AES_DEBUG -# ifndef NDEBUG -# define NDEBUG -# endif -#endif #include <assert.h> #include <openssl/aes.h> diff --git a/crypto/aes/aes_x86core.c b/crypto/aes/aes_x86core.c index 400884aff5..1b64f5b65b 100644 --- a/crypto/aes/aes_x86core.c +++ b/crypto/aes/aes_x86core.c @@ -34,11 +34,6 @@ */ -#ifndef AES_DEBUG -# ifndef NDEBUG -# define NDEBUG -# endif -#endif #include <assert.h> #include <stdlib.h> diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index 17ea8af678..72a2ee849b 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -55,13 +55,6 @@ * [including the GNU Public Licence.] */ -/* disable assert() unless BIO_DEBUG has been defined */ -#ifndef BIO_DEBUG -# ifndef NDEBUG -# define NDEBUG -# endif -#endif - /* * Stolen from tjh's ssl/ssl_trc.c stuff. */ diff --git a/crypto/blake2/blake2b.c b/crypto/blake2/blake2b.c index 672210a751..8e92a0a8be 100644 --- a/crypto/blake2/blake2b.c +++ b/crypto/blake2/blake2b.c @@ -15,11 +15,6 @@ * can be found at https://blake2.net. */ -#ifndef BLAKE_DEBUG -# undef NDEBUG /* avoid conflicting definitions */ -# define NDEBUG -#endif - #include <assert.h> #include <string.h> #include <openssl/crypto.h> diff --git a/crypto/blake2/blake2s.c b/crypto/blake2/blake2s.c index 03295c08b6..227fa10edc 100644 --- a/crypto/blake2/blake2s.c +++ b/crypto/blake2/blake2s.c @@ -15,11 +15,6 @@ * can be found at https://blake2.net. */ -#ifndef BLAKE_DEBUG -# undef NDEBUG /* avoid conflicting definitions */ -# define NDEBUG -#endif - #include <assert.h> #include <string.h> #include <openssl/crypto.h> diff --git a/crypto/bn/bn_asm.c b/crypto/bn/bn_asm.c index 9e9bce9052..4c67d28092 100644 --- a/crypto/bn/bn_asm.c +++ b/crypto/bn/bn_asm.c @@ -55,11 +55,6 @@ * [including the GNU Public Licence.] */ -#ifndef BN_DEBUG -# undef NDEBUG /* avoid conflicting definitions */ -# define NDEBUG -#endif - #include <assert.h> #include <openssl/crypto.h> #include "internal/cryptlib.h" diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index ce9f768cdb..4b37906319 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -55,11 +55,6 @@ * [including the GNU Public Licence.] */ -#ifndef BN_DEBUG -# undef NDEBUG /* avoid conflicting definitions */ -# define NDEBUG -#endif - #include <assert.h> #include <limits.h> #include "internal/cryptlib.h" diff --git a/crypto/bn/bn_mul.c b/crypto/bn/bn_mul.c index 7d4cd31004..0d2a743cc7 100644 --- a/crypto/bn/bn_mul.c +++ b/crypto/bn/bn_mul.c @@ -55,11 +55,6 @@ * [including the GNU Public Licence.] */ -#ifndef BN_DEBUG -# undef NDEBUG /* avoid conflicting definitions */ -# define NDEBUG -#endif - #include <assert.h> #include "internal/cryptlib.h" #include "bn_lcl.h" |