From 0b8c12f57a63b895b9192846f79ce73db0153c02 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Wed, 22 Feb 2017 21:40:41 +0100 Subject: [PATCH] Add -Wundef to --strict-warnings options. Fix some warnings. Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2714) --- Configure | 2 +- test/testutil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Configure b/Configure index da0230a329..fd7988e2b3 100755 --- a/Configure +++ b/Configure @@ -109,7 +109,7 @@ my $usage="Usage: Configure [no- ...] [enable- ...] [experimenta # Minimum warning options... any contributions to OpenSSL should at least get # past these. -my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED"; +my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Wundef -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED"; # TODO(openssl-team): fix problems and investigate if (at least) the following # warnings can also be enabled: diff --git a/test/testutil.h b/test/testutil.h index 75f0c8ae01..e40b37ed6e 100644 --- a/test/testutil.h +++ b/test/testutil.h @@ -103,7 +103,7 @@ * TEST_CASE_NAME is defined as the name of the test case function where * possible; otherwise we get by with the file name and line number. */ -# if __STDC_VERSION__ < 199901L +# if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L # if defined(_MSC_VER) # define TEST_CASE_NAME __FUNCTION__ # else -- 2.25.1