]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : ignore more msvc warnings (ggml/906)
authorBorislav Stanimirov <redacted>
Wed, 7 Aug 2024 07:00:56 +0000 (10:00 +0300)
committerGeorgi Gerganov <redacted>
Thu, 8 Aug 2024 19:48:46 +0000 (22:48 +0300)
ggml/src/ggml-aarch64.c
ggml/src/ggml.c

index af53dea172459af968c07fe7271b710e7a689992..90bad531ee6153c4809d02e8ae56bb3b9cac5ba4 100644 (file)
@@ -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
index c76d00a39ed00a3882cd7474f52414f41406b1f2..25a5d8bb6264d124df8b7681fe5a9f38075bfae3 100644 (file)
@@ -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)