Skip to content

Commit

Permalink
ggml : suppress unknown pragma 'GCC' on windows (ggerganov#8460)
Browse files Browse the repository at this point in the history
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]
```
  • Loading branch information
danbev authored and arthw committed Jul 27, 2024
1 parent bc4f1c4 commit e128332
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ggml/src/ggml-aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

#include "ggml-aarch64.h"

#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Woverlength-strings"
#endif

#define UNUSED GGML_UNUSED

Expand Down

0 comments on commit e128332

Please sign in to comment.