stanimirovb commited on
Commit
1b11fde
·
1 Parent(s): 14cf8db

ggml : ignore more msvc warnings (ggml/906)

Browse files
Files changed (2) hide show
  1. ggml/src/ggml-aarch64.c +2 -0
  2. ggml/src/ggml.c +3 -0
ggml/src/ggml-aarch64.c CHANGED
@@ -16,6 +16,8 @@
16
 
17
  #if defined(__GNUC__)
18
  #pragma GCC diagnostic ignored "-Woverlength-strings"
 
 
19
  #endif
20
 
21
  #define UNUSED GGML_UNUSED
 
16
 
17
  #if defined(__GNUC__)
18
  #pragma GCC diagnostic ignored "-Woverlength-strings"
19
+ #elif defined(_MSC_VER)
20
+ #pragma warning(disable: 4244 4267) // possible loss of data
21
  #endif
22
 
23
  #define UNUSED GGML_UNUSED
ggml/src/ggml.c CHANGED
@@ -53,6 +53,9 @@
53
  // disable POSIX deprecation warnings
54
  // these functions are never going away, anyway
55
  #pragma warning(disable: 4996)
 
 
 
56
  #endif
57
 
58
  #if defined(_WIN32)
 
53
  // disable POSIX deprecation warnings
54
  // these functions are never going away, anyway
55
  #pragma warning(disable: 4996)
56
+
57
+ // unreachable code because of multiple instances of code after GGML_ABORT
58
+ #pragma warning(disable: 4702)
59
  #endif
60
 
61
  #if defined(_WIN32)