cleanup: fix compile warnings associated with gnu_printf (llama/11811)

This commit is contained in:
bandoti 2025-02-12 10:06:53 -04:00 committed by Georgi Gerganov
parent d597f83e1a
commit 7fbca6304e

View File

@ -198,7 +198,7 @@
#ifndef __GNUC__ #ifndef __GNUC__
# define GGML_ATTRIBUTE_FORMAT(...) # define GGML_ATTRIBUTE_FORMAT(...)
#elif defined(__MINGW32__) #elif defined(__MINGW32__) && !defined(__clang__)
# define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__))) # define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(gnu_printf, __VA_ARGS__)))
#else #else
# define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__))) # define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))