From 463a7b8cb0a449512448155a477f1460d8c951d9 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 6 Apr 2016 12:47:35 +0200 Subject: Clean-up *_DEBUG options. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Emilia Käsper --- e_os.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'e_os.h') diff --git a/e_os.h b/e_os.h index f0a441ec8b..648035d59b 100644 --- a/e_os.h +++ b/e_os.h @@ -72,15 +72,12 @@ extern "C" { /* Used to checking reference counts, most while doing perl5 stuff :-) */ # if defined(OPENSSL_NO_STDIO) -# if defined(REF_DEBUG) -# error "REF_DEBUG requires stdio" -# endif # if defined(REF_PRINT) # error "REF_PRINT requires stdio" # endif # endif -# if defined(REF_DEBUG) +# if !defined(NDEBUG) && !defined(OPENSSL_NO_STDIO) # define REF_ASSERT_ISNT(test) \ (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0) # else -- cgit v1.2.3