From b7e3ef682436abe792ccc916629a1c9422b93fee Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 14 Sep 2025 00:52:19 +1000 Subject: [PATCH] [client] nanosvg: disable warning for release builds --- client/src/overlay_utils.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/overlay_utils.c b/client/src/overlay_utils.c index fba6086d..ce56d5a4 100644 --- a/client/src/overlay_utils.c +++ b/client/src/overlay_utils.c @@ -29,7 +29,15 @@ #define NANOSVG_IMPLEMENTATION #define NANOSVG_ALL_COLOR_KEYWORDS #define NANOSVGRAST_IMPLEMENTATION -#include "nanosvgrast.h" + +#ifndef __clang__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #include "nanosvgrast.h" + #pragma GCC diagnostic pop +#else + #include "nanosvgrast.h" +#endif void overlayGetImGuiRect(struct Rect * rect) {