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:54:16 +0000 (11:54 +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)

(cherry picked from commit a1de5eb88479515535e5de090ded800455c3d4a7)

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

index 651843b62970a97ce8818cdfeeb43d5e3a3fa72f..c521e41e4a17059b313097768fd1f040ecd3b552 100644 (file)
@@ -796,6 +796,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 1d9afffb5802e37457a67d676fc44107ea562a69..d621204557550813fe69b4d20951a52f24e0d764 100644 (file)
@@ -285,7 +285,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,