summaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index c0efa197..0eda7f33 100644
--- a/ggml.c
+++ b/ggml.c
@@ -35,6 +35,12 @@
#define static_assert(cond, msg) struct global_scope_noop_trick
#endif
+#if defined(_MSC_VER)
+// disable "possible loss of data" to avoid hundreds of casts
+// we should just be careful :)
+#pragma warning(disable: 4244 4267)
+#endif
+
#if defined(_WIN32)
#include <windows.h>