summaryrefslogtreecommitdiff
path: root/ggml-quants.c
diff options
context:
space:
mode:
authorBorislav Stanimirov <b.stanimirov@abv.bg>2024-04-25 17:24:07 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2024-05-11 15:38:34 +0300
commitef0d5e3ec9f99003af3ff326384816c02850ea3f (patch)
tree3259ab21f6e7009edc746e766242c6ad5d272684 /ggml-quants.c
parent3292733f95d4632a956890a438af5192e7031c12 (diff)
build: fix and ignore msvc warnings (ggml/805)
Diffstat (limited to 'ggml-quants.c')
-rw-r--r--ggml-quants.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ggml-quants.c b/ggml-quants.c
index 9883b6f8..00334c5f 100644
--- a/ggml-quants.c
+++ b/ggml-quants.c
@@ -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