]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cleanup: fix compile warnings associated with gnu_printf (llama/11811)
authorbandoti <redacted>
Wed, 12 Feb 2025 14:06:53 +0000 (10:06 -0400)
committerGeorgi Gerganov <redacted>
Thu, 27 Feb 2025 06:55:36 +0000 (08:55 +0200)
ggml/include/ggml.h

index 5bd8d9c8b50232fb273a4a7808d32504876bb848..dd0c6a96eaee87ba4a4e9f4294455eb7b0c8f247 100644 (file)
 
 #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__)))