cleanup: fix compile warnings associated with gnu_printf (#11811)

This commit is contained in:
bandoti authored and GitHub committed 2025-02-12 10:06:53 -04:00
1 parent 748ee9fe93
commit fef0cbeadf
5 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -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__)))