Skip to content

Commit

Permalink
cleanup: fix compile warnings associated with gnu_printf (llama/11811)
Browse files Browse the repository at this point in the history
  • Loading branch information
bandoti authored and ggerganov committed Feb 12, 2025
1 parent b669f7a commit d893024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ggml.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)))
Expand Down

0 comments on commit d893024

Please sign in to comment.