From c42d7d7c3d71f9a6eeb4a7b86204376f53d57a0b Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 12 Jul 2024 15:08:59 +0100 Subject: [PATCH] ggml : suppress unknown pragma 'GCC' on windows 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