From b8ea90073bffb84c745838911bb66c21831632e5 Mon Sep 17 00:00:00 2001 From: Paul Khuong Date: Sat, 21 Feb 2026 15:45:10 -0500 Subject: [PATCH 1/2] X11: explicitly cast message to Atom before comparing to closeWindowAtom Avoids signed/unsigned comparison warnings --- thirteen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirteen.h b/thirteen.h index 37ab3db..7d76dc5 100644 --- a/thirteen.h +++ b/thirteen.h @@ -1861,7 +1861,7 @@ namespace Thirteen mouseY = event.xmotion.y; break; case ClientMessage: - if (event.xclient.data.l[0] == closeWindowAtom) + if ((Atom)event.xclient.data.l[0] == closeWindowAtom) shouldQuit = true; break; } From 6ad3f12044a732ffdc13b2e2a856f32c771e3575 Mon Sep 17 00:00:00 2001 From: Paul Khuong Date: Sat, 21 Feb 2026 15:49:19 -0500 Subject: [PATCH 2/2] Examples: silence warnings around stb_image_write --- Examples/Mandelbrot/main.cpp | 9 +++++++++ Examples/Minesweeper/main.cpp | 9 +++++++++ Examples/Simple/main.cpp | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/Examples/Mandelbrot/main.cpp b/Examples/Mandelbrot/main.cpp index 5f54b4f..aee0f80 100644 --- a/Examples/Mandelbrot/main.cpp +++ b/Examples/Mandelbrot/main.cpp @@ -4,9 +4,18 @@ #include +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + #define STB_IMAGE_WRITE_IMPLEMENTATION #include "../stb/stb_image_write.h" +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + static const unsigned int c_width = 1024; static const unsigned int c_height = 768; static const bool c_fullscreen = false; diff --git a/Examples/Minesweeper/main.cpp b/Examples/Minesweeper/main.cpp index 1e69f00..be78e79 100644 --- a/Examples/Minesweeper/main.cpp +++ b/Examples/Minesweeper/main.cpp @@ -6,9 +6,18 @@ #include #include +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + #define STB_IMAGE_WRITE_IMPLEMENTATION #include "../stb/stb_image_write.h" +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + static const unsigned int c_width = 768; static const unsigned int c_height = 768; static const bool c_fullscreen = false; diff --git a/Examples/Simple/main.cpp b/Examples/Simple/main.cpp index 138e9cd..59d2d9c 100644 --- a/Examples/Simple/main.cpp +++ b/Examples/Simple/main.cpp @@ -4,9 +4,18 @@ #include +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + #define STB_IMAGE_WRITE_IMPLEMENTATION #include "../stb/stb_image_write.h" +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + static const unsigned int c_width = 1024; static const unsigned int c_height = 768; static const bool c_fullscreen = false;