]> git.draconx.ca Git - slotifier.git/commitdiff
Disable deprecation warnings from Glib.
authorNick Bowler <nbowler@draconx.ca>
Tue, 5 Apr 2022 01:09:07 +0000 (21:09 -0400)
committerNick Bowler <nbowler@draconx.ca>
Tue, 5 Apr 2022 01:17:11 +0000 (21:17 -0400)
Even if I wanted to make the suggested code changes to avoid these
pointless warnings, in this case the problem is not in tihs package,
but it comes from an external #include dependency via libgerbv.

Thankfully we can simply define a macro to shut it all up.

configure.ac

index 6100d262f3ffe7a54223914b1d4f9ab83e110a75..165e1a4ec008310c8f1a8fa764029a3ea9a5312d 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2018-2019, 2021 Nick Bowler
+dnl Copyright © 2018-2019, 2021-2022 Nick Bowler
 dnl
 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
@@ -31,6 +31,8 @@ DX_LINGUAS
 
 DX_LIB_CNEARTREE
 DX_LIB_LIBGERBV
+AC_DEFINE([GLIB_DISABLE_DEPRECATION_WARNINGS], [1],
+  [Define to shut up glib deprecation silliness.])
 
 AS_IF([test x"$dx_cv_libgerbv_lib_found" = x"yes"],
 [AC_CACHE_CHECK([if libgerbv supports G85 slots], [dx_cv_gerbv_supports_g85],