From c970b0bb0768724f5be2ee7ee36bc07b01fc6a62 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Mon, 17 Jun 2024 17:11:51 +0200 Subject: sokol_fetch.h: suppress new msvc warning 'potential mod by 0' --- sokol_fetch.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sokol_fetch.h b/sokol_fetch.h index f94f5c82..2cc49312 100644 --- a/sokol_fetch.h +++ b/sokol_fetch.h @@ -1201,6 +1201,11 @@ inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfe #define _SFETCH_HAS_THREADS (1) #endif +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4724) // potential mod by 0 +#endif + // ███████ ████████ ██████ ██ ██ ██████ ████████ ███████ // ██ ██ ██ ██ ██ ██ ██ ██ ██ // ███████ ██ ██████ ██ ██ ██ ██ ███████ @@ -2806,4 +2811,9 @@ SOKOL_API_IMPL void sfetch_cancel(sfetch_handle_t h) { item->user.cancel = true; } } + +#ifdef _MSC_VER +#pragma warning(pop) +#endif + #endif /* SOKOL_FETCH_IMPL */ -- cgit v1.2.3