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; 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; }