Merge pull request #10695 from valord577/patch-1

Fix build warning/error using llvm-mingw
This commit is contained in:
minosgalanakis
2026-04-29 14:52:00 +00:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
Bugfix
* Fix a build error using the LLVM based MinGW toolchain.
Bug reported and fix contributed by valord577.

View File

@@ -59,7 +59,7 @@
*/
#if defined(__has_attribute)
#if __has_attribute(format)
#if defined(__MINGW32__)
#if defined(__MINGW32__) && !defined(__clang__)
#define MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check) \
__attribute__((__format__(gnu_printf, string_index, first_to_check)))
#else /* defined(__MINGW32__) */