[PATCH] gmacros: Add G_GNUC_UNUSED for autoptr funcs (notably GLists)
@walters
Submitted by Colin Walters Link to original bug (#796346)
Description
Created attachment 372346 [PATCH] gmacros: Add G_GNUC_UNUSED for autoptr funcs (notably GLists)
In commit f49a93b2 from bug https://bugzilla.gnome.org/show_bug.cgi?id=791342 we added two new static inline cleanup helpers in case a type was used inside a list.
These functions will commonly be unused.
In rpm-ostree, we run a build using CC=clang -Werror=unused
because
it catches g_autofree char *foo = NULL;
as unused, but GCC doesn't.
When trying to update to F28 with a newer glib, our CI fell over on this.
Mark all of the autocleanups as "maybe unused".
Patch 372346, "[PATCH] gmacros: Add G_GNUC_UNUSED for autoptr funcs (notably GLists)":
0001-gmacros-Add-G_GNUC_UNUSED-for-autoptr-funcs-notably-.patch