]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Disable printf format checking on MinGW
authorDaniel Fiala <daniel@openssl.org>
Tue, 27 Sep 2022 04:01:25 +0000 (06:01 +0200)
committerHugo Landau <hlandau@openssl.org>
Tue, 4 Oct 2022 10:53:38 +0000 (11:53 +0100)
Fixes openssl#19185

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19292)

include/openssl/bio.h.in
test/testutil.h
test/testutil/output.h

index e413bb41cb81f6b6e603892ddaed7beec62ad31b..6105c602fd8ceeeb91582d0787483e9acd835cd7 100644 (file)
@@ -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,
index 0a050bb060edb566b729ca08c5f0d986389b2eab..fde9ff046b48b83752c6b3f881834ad92b55b7b5 100644 (file)
@@ -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.
index 5e4f4c239051a22ec5e931f32e6b0802b33e351e..0e4de09704f89e3b0cb8dafb93fed68c74c2a772 100644 (file)
@@ -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,