build: fix and ignore msvc warnings (ggml/805)
This commit is contained in:
parent
3292733f95
commit
ef0d5e3ec9
2 changed files with 8 additions and 2 deletions
|
@ -14,6 +14,12 @@
|
|||
#include <stdlib.h> // for qsort
|
||||
#include <stdio.h> // for GGML_ASSERT
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// disable "possible loss of data" to avoid warnings for hundreds of casts
|
||||
// we should just be careful :)
|
||||
#pragma warning(disable: 4244 4267)
|
||||
#endif
|
||||
|
||||
#define UNUSED GGML_UNUSED
|
||||
|
||||
// some compilers don't provide _mm256_set_m128i, e.g. gcc 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue