aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-06-17 17:11:51 +0200
committerAndre Weissflog <floooh@gmail.com>2024-06-17 17:11:51 +0200
commitc970b0bb0768724f5be2ee7ee36bc07b01fc6a62 (patch)
tree7f916ce0c42401e4059633f30bb61e647d54e016
parentc54523c078e481d3084fa0b4630d2ce3d3e1e74f (diff)
sokol_fetch.h: suppress new msvc warning 'potential mod by 0'
-rw-r--r--sokol_fetch.h10
1 files changed, 10 insertions, 0 deletions
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 */