From: jojorne Date: Tue, 18 Jun 2024 12:18:32 +0000 (-0300) Subject: Fix no gcc pragma on Windows (#7751) X-Git-Tag: upstream/0.0.4488~1308 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=84f6de17f6a8602e7ff7f7c7bda36a73f510a2dd;p=pkg%2Fggml%2Fsources%2Fllama.cpp Fix no gcc pragma on Windows (#7751) --- diff --git a/sgemm.cpp b/sgemm.cpp index 40ba9d7e..bbe263dd 100644 --- a/sgemm.cpp +++ b/sgemm.cpp @@ -43,8 +43,10 @@ // [1] J. Tunney, ‘LLaMA Now Goes Faster on CPUs’, Mar. 2024. [Online]. // Available: https://justine.lol/matmul/. [Accessed: 29-Mar-2024]. +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wpedantic" #pragma GCC diagnostic ignored "-Wignored-attributes" +#endif #include "sgemm.h" #include "ggml-impl.h"