GLib 2.63.1 will be released in the next few weeks, and will contain a fun new API to slightly simplify emitting a warning once, and then shutting up to avoid emitting loads of log spam.
It is g_warning_once()
, and works just like g_warning()
.
Thanks to Jonas Ådahl for putting it together!