From: Daniel Fiala Date: Tue, 27 Sep 2022 04:01:25 +0000 (+0200) Subject: Disable printf format checking on MinGW X-Git-Tag: openssl-3.2.0-alpha1~1972 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1de5eb88479515535e5de090ded800455c3d4a7;p=thirdparty%2Fopenssl.git Disable printf format checking on MinGW Fixes openssl#19185 Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/19292) --- diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in index e413bb41cb8..6105c602fd8 100644 --- a/include/openssl/bio.h.in +++ b/include/openssl/bio.h.in @@ -870,6 +870,7 @@ void BIO_copy_next_retry(BIO *b); # define ossl_bio__attr__(x) # if defined(__GNUC__) && defined(__STDC_VERSION__) \ + && !defined(__MINGW32__) && !defined(__MINGW64__) \ && !defined(__APPLE__) /* * Because we support the 'z' modifier, which made its appearance in C99, diff --git a/test/testutil.h b/test/testutil.h index 0a050bb060e..fde9ff046b4 100644 --- a/test/testutil.h +++ b/test/testutil.h @@ -286,7 +286,9 @@ const OPTIONS *test_get_options(void); */ # define PRINTF_FORMAT(a, b) -# if defined(__GNUC__) && defined(__STDC_VERSION__) +# if defined(__GNUC__) && defined(__STDC_VERSION__) \ + && !defined(__MINGW32__) && !defined(__MINGW64__) \ + && !defined(__APPLE__) /* * Because we support the 'z' modifier, which made its appearance in C99, * we can't use __attribute__ with pre C99 dialects. diff --git a/test/testutil/output.h b/test/testutil/output.h index 5e4f4c23905..0e4de09704f 100644 --- a/test/testutil/output.h +++ b/test/testutil/output.h @@ -14,6 +14,7 @@ # define ossl_test__attr__(x) # if defined(__GNUC__) && defined(__STDC_VERSION__) \ + && !defined(__MINGW32__) && !defined(__MINGW64__) \ && !defined(__APPLE__) /* * Because we support the 'z' modifier, which made its appearance in C99,