diff src/sys/glib/dark_theme.cc @ 411:02a670a8e1c4

*: fix build fails
author Paper <paper@tflc.us>
date Sat, 25 Jul 2026 14:22:44 -0400
parents df4a027623d0
children
line wrap: on
line diff
--- a/src/sys/glib/dark_theme.cc	Thu Apr 02 01:09:09 2026 -0400
+++ b/src/sys/glib/dark_theme.cc	Sat Jul 25 14:22:44 2026 -0400
@@ -3,10 +3,19 @@
 
 #include <array>
 #include <cstring>
-#include <gio/gio.h>
 #include <memory>
 #include <string_view>
 
+#ifdef __GNUC__
+/* Shut up */
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wold-style-cast"
+#endif
+#include <gio/gio.h>
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif
+
 namespace glib {
 
 /* deleters */
@@ -22,7 +31,7 @@
 
 template<typename T>
 struct g_malloc_del {
-	void operator()(T *p) const { ::g_free(p); };
+	void operator()(T *p) const { (::g_free)(p); };
 };
 
 template<typename T>