Skip to content

Commit 8fac431

Browse files
authored
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] ```
1 parent f17f39f commit 8fac431

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml/src/ggml-aarch64.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
#include "ggml-aarch64.h"
1616

17+
#if defined(__GNUC__)
1718
#pragma GCC diagnostic ignored "-Woverlength-strings"
19+
#endif
1820

1921
#define UNUSED GGML_UNUSED
2022

0 commit comments

Comments
 (0)