Skip to content

Commit

Permalink
ggml : ignore more msvc warnings (ggml/906)
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB authored and ggerganov committed Aug 8, 2024
1 parent 5b33ea1 commit f93d49a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ggml/src/ggml-aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ int ggml_sve_cnt_b = 0;
// 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)
Expand Down

0 comments on commit f93d49a

Please sign in to comment.