From a3d3ede9d635ac18b59c069ed0472b8880f34609 Mon Sep 17 00:00:00 2001 From: valord577 Date: Thu, 16 Apr 2026 14:31:55 +0800 Subject: [PATCH 1/3] Fix build warning/error using llvm-mingw error logs refs: https://github.com/valord577/nativepkgs/actions/runs/24490614774/job/71574726128 Signed-off-by: valord577 --- include/mbedtls/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbedtls/debug.h b/include/mbedtls/debug.h index b8273bc757..8cd101cbf4 100644 --- a/include/mbedtls/debug.h +++ b/include/mbedtls/debug.h @@ -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__) */ From 37b81f13c736d89dbd66672cc102e780d000a7a1 Mon Sep 17 00:00:00 2001 From: valord577 Date: Thu, 16 Apr 2026 15:17:32 +0800 Subject: [PATCH 2/3] add ChangeLog Signed-off-by: valord577 --- ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt diff --git a/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt b/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt new file mode 100644 index 0000000000..1ea2e6af29 --- /dev/null +++ b/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt @@ -0,0 +1,4 @@ +Bugfix + * Fix a build error using the LLVM based MinGW toolchain. + Bug reported and fix contributed by valord577. + Fixes #10695. From 68319cbc80bff1a29221de05a7c4dd210a0ead41 Mon Sep 17 00:00:00 2001 From: valord577 Date: Wed, 22 Apr 2026 11:05:04 +0800 Subject: [PATCH 3/3] update ChangeLog Signed-off-by: valord577 --- ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt b/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt index 1ea2e6af29..3fed87143f 100644 --- a/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt +++ b/ChangeLog.d/pr_10695__fix_build_llvm_mingw.txt @@ -1,4 +1,3 @@ Bugfix * Fix a build error using the LLVM based MinGW toolchain. Bug reported and fix contributed by valord577. - Fixes #10695.