From: Borislav Stanimirov Date: Wed, 7 Aug 2024 07:00:56 +0000 (+0300) Subject: ggml : ignore more msvc warnings (#906) X-Git-Tag: upstream/0.0.1642~483 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6c71d5a071d842118fb04c03c4b15116dff09621;p=pkg%2Fggml%2Fsources%2Fggml ggml : ignore more msvc warnings (#906) --- diff --git a/src/ggml-aarch64.c b/src/ggml-aarch64.c index af53dea1..90bad531 100644 --- a/src/ggml-aarch64.c +++ b/src/ggml-aarch64.c @@ -16,6 +16,8 @@ #if defined(__GNUC__) #pragma GCC diagnostic ignored "-Woverlength-strings" +#elif defined(_MSC_VER) +#pragma warning(disable: 4244 4267) // possible loss of data #endif #define UNUSED GGML_UNUSED diff --git a/src/ggml.c b/src/ggml.c index c76d00a3..25a5d8bb 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -53,6 +53,9 @@ // disable POSIX deprecation warnings // these functions are never going away, anyway #pragma warning(disable: 4996) + +// unreachable code because of multiple instances of code after GGML_ABORT +#pragma warning(disable: 4702) #endif #if defined(_WIN32)