Skip to content

Commit a932a51

Browse files
iboBarthw
authored andcommitted
ggml : ignore more msvc warnings (ggml/906)
1 parent aa07dfa commit a932a51

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ggml/src/ggml-aarch64.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#if defined(__GNUC__)
1818
#pragma GCC diagnostic ignored "-Woverlength-strings"
19+
#elif defined(_MSC_VER)
20+
#pragma warning(disable: 4244 4267) // possible loss of data
1921
#endif
2022

2123
#define UNUSED GGML_UNUSED

ggml/src/ggml.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ int ggml_sve_cnt_b = 0;
5656
// disable POSIX deprecation warnings
5757
// these functions are never going away, anyway
5858
#pragma warning(disable: 4996)
59+
60+
// unreachable code because of multiple instances of code after GGML_ABORT
61+
#pragma warning(disable: 4702)
5962
#endif
6063

6164
#if defined(_WIN32)

0 commit comments

Comments
 (0)