From 9cbf50c041a525d781c7764f493a5443924e4e38 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Fri, 16 Jun 2023 21:23:53 +0300 Subject: build : fix and ignore MSVC warnings (#1889) --- ggml.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ggml.c') diff --git a/ggml.c b/ggml.c index c0efa19..0eda7f3 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 -- cgit v1.2.3