From ad7c9c9faf8938e17be29cc9afd69d4f0267234c Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 31 Mar 2016 22:09:04 +0200 Subject: [PATCH] Configure: add BLAKE_DEBUG to --strict-warnings set. Reviewed-by: Rich Salz --- Configure | 2 +- crypto/blake2/blake2b.c | 2 +- crypto/blake2/blake2s.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Configure b/Configure index fdd88208b6..c1b63e8933 100755 --- a/Configure +++ b/Configure @@ -77,7 +77,7 @@ my $usage="Usage: Configure [no- ...] [enable- ...] [-Dxxx] [-lx # Minimum warning options... any contributions to OpenSSL should at least get # past these. -my $gcc_devteam_warn = "-DPEDANTIC -DREF_DEBUG -DDEBUG_UNUSED -DBIO_DEBUG" +my $gcc_devteam_warn = "-DPEDANTIC -DREF_DEBUG -DDEBUG_UNUSED -DBIO_DEBUG -DBLAKE_DEBUG" . " -pedantic" . " -Wall" . " -Wno-long-long" diff --git a/crypto/blake2/blake2b.c b/crypto/blake2/blake2b.c index 56b56fb2ef..672210a751 100644 --- a/crypto/blake2/blake2b.c +++ b/crypto/blake2/blake2b.c @@ -78,7 +78,7 @@ static void blake2b_init_param(BLAKE2B_CTX *S, const BLAKE2B_PARAM *P) /* The param struct is carefully hand packed, and should be 64 bytes on * every platform. */ - OPENSSL_assert(sizeof(BLAKE2B_PARAM) == 64); + assert(sizeof(BLAKE2B_PARAM) == 64); /* IV XOR ParamBlock */ for (i = 0; i < 8; ++i) { S->h[i] ^= load64(p + sizeof(S->h[i]) * i); diff --git a/crypto/blake2/blake2s.c b/crypto/blake2/blake2s.c index 905a28eaf7..03295c08b6 100644 --- a/crypto/blake2/blake2s.c +++ b/crypto/blake2/blake2s.c @@ -73,7 +73,7 @@ static void blake2s_init_param(BLAKE2S_CTX *S, const BLAKE2S_PARAM *P) /* The param struct is carefully hand packed, and should be 32 bytes on * every platform. */ - OPENSSL_assert(sizeof(BLAKE2S_PARAM) == 32); + assert(sizeof(BLAKE2S_PARAM) == 32); blake2s_init0(S); /* IV XOR ParamBlock */ for (i = 0; i < 8; ++i) { -- 2.40.0