From 763259d6544642625cd2aaf5b70f9a80d9121d9d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 6 Jan 2024 10:07:15 +0100 Subject: [PATCH] silence warnings in nanosvg.h --- libraries/ZWidget/src/core/nanosvg/nanosvg.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/ZWidget/src/core/nanosvg/nanosvg.h b/libraries/ZWidget/src/core/nanosvg/nanosvg.h index 60a323820c..36830f05c6 100644 --- a/libraries/ZWidget/src/core/nanosvg/nanosvg.h +++ b/libraries/ZWidget/src/core/nanosvg/nanosvg.h @@ -192,6 +192,11 @@ void nsvgDelete(NSVGimage* image); #include #include +#ifdef _MSC_VER +#pragma warning(push); +#pragma warning(disable:4244) +#endif + #define NSVG_PI (3.14159265358979323846264338327f) #define NSVG_KAPPA90 (0.5522847493f) // Length proportional to radius of a cubic bezier handle for 90deg arcs. @@ -3093,6 +3098,10 @@ void nsvgDelete(NSVGimage* image) free(image); } +#ifdef _MSC_VER +#pragma warning(pop); +#endif + #endif // NANOSVG_IMPLEMENTATION #endif // NANOSVG_H