From: bandoti Date: Wed, 12 Feb 2025 14:06:53 +0000 (-0400) Subject: cleanup: fix compile warnings associated with gnu_printf (llama/11811) X-Git-Tag: upstream/1.7.4+203~77 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7fbca6304ee8b3091c55f7d8f0b7cf26ddacf2f3;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cleanup: fix compile warnings associated with gnu_printf (llama/11811) --- diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h index 5bd8d9c8..dd0c6a96 100644 --- a/ggml/include/ggml.h +++ b/ggml/include/ggml.h @@ -198,7 +198,7 @@ #ifndef __GNUC__ # define GGML_ATTRIBUTE_FORMAT(...) -#elif defined(__MINGW32__) +#elif defined(__MINGW32__) && !defined(__clang__) # define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__))) #else # define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))