From 8fac431b0692e88cdc55250f29f8d4386be82c5d Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 15 Jul 2024 14:48:17 +0200 Subject: [PATCH] ggml : suppress unknown pragma 'GCC' on windows (#8460) This commit adds a macro guard to pragma GCC to avoid the following warning on windows: ```console C:\llama.cpp\ggml\src\ggml-aarch64.c(17,9): warning C4068: unknown pragma 'GCC' [C:\lama.cpp\build\ggml\src\ggml.vcxproj] ``` --- ggml/src/ggml-aarch64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml/src/ggml-aarch64.c b/ggml/src/ggml-aarch64.c index 40838cf4f..26535b1c4 100644 --- a/ggml/src/ggml-aarch64.c +++ b/ggml/src/ggml-aarch64.c @@ -14,7 +14,9 @@ #include "ggml-aarch64.h" +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Woverlength-strings" +#endif #define UNUSED GGML_UNUSED