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/0.0.1722~2 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=dcbd7aa36cf7d6355ed9353e8e4c7045d6ad94eb;p=pkg%2Fggml%2Fsources%2Fggml cleanup: fix compile warnings associated with gnu_printf (llama/11811) --- diff --git a/include/ggml.h b/include/ggml.h index 5bd8d9c8..dd0c6a96 100644 --- a/include/ggml.h +++ b/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__)))