From: Daniel Bevenius Date: Mon, 15 Jul 2024 12:48:17 +0000 (+0200) Subject: ggml : suppress unknown pragma 'GCC' on windows (llama/8460) X-Git-Tag: upstream/0.0.1642~514 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=a8edebbf854a9a119dc1dbb84ec10151a1b9c5b1;p=pkg%2Fggml%2Fsources%2Fggml ggml : suppress unknown pragma 'GCC' on windows (llama/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