From: Daniel Bevenius Date: Mon, 15 Jul 2024 12:48:17 +0000 (+0200) Subject: ggml : suppress unknown pragma 'GCC' on windows (#8460) X-Git-Tag: upstream/0.0.4488~1089 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=8fac431b0692e88cdc55250f29f8d4386be82c5d;p=pkg%2Fggml%2Fsources%2Fllama.cpp 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] ``` --- diff --git a/ggml/src/ggml-aarch64.c b/ggml/src/ggml-aarch64.c index 40838cf4..26535b1c 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