]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : suppress unknown pragma 'GCC' on windows (#8460)
authorDaniel Bevenius <redacted>
Mon, 15 Jul 2024 12:48:17 +0000 (14:48 +0200)
committerGitHub <redacted>
Mon, 15 Jul 2024 12:48:17 +0000 (15:48 +0300)
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

index 40838cf4ffdcf6e78559469be576f6db84b51599..26535b1c432ba6c82bd43a127a0b04b0d53c3046 100644 (file)
@@ -14,7 +14,9 @@
 
 #include "ggml-aarch64.h"
 
+#if defined(__GNUC__)
 #pragma GCC diagnostic ignored "-Woverlength-strings"
+#endif
 
 #define UNUSED GGML_UNUSED