FTBS: Doesn't build with GLib 2.56
(I had an older glib 2.57 in my jhbuild, though I assume the problem will be the same with glib 2.56).
The Thunderbolt panel fails to build:
In file included from /home/hadess/Projects/gnome-install/lib/glib-2.0/include/glibconfig.h:9,
from /home/hadess/Projects/gnome-install/include/glib-2.0/glib/gtypes.h:32,
from /home/hadess/Projects/gnome-install/include/glib-2.0/glib/galloca.h:32,
from /home/hadess/Projects/gnome-install/include/glib-2.0/glib.h:30,
from /home/hadess/Projects/gnome-install/include/glib-2.0/gobject/gbinding.h:28,
from /home/hadess/Projects/gnome-install/include/glib-2.0/glib-object.h:23,
from panels/thunderbolt/bolt-enum-types.h:6,
from ../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.h:24,
from ../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:23:
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c: In function ‘bolt_enum_validate’:
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:70:13: error: unknown type name ‘GEnumClass_autoptr’
g_autoptr(GEnumClass) klass = g_type_class_ref (enum_type);
^~~~~~~~~~
/home/hadess/Projects/gnome-install/include/glib-2.0/glib/gmacros.h:457:43: note: in definition of macro ‘_GLIB_AUTOPTR_TYPENAME’
#define _GLIB_AUTOPTR_TYPENAME(TypeName) TypeName##_autoptr
^~~~~~~~
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:70:3: note: in expansion of macro ‘g_autoptr’
g_autoptr(GEnumClass) klass = g_type_class_ref (enum_type);
^~~~~~~~~
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:70:3: error: cleanup argument not a function
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:70:33: warning: initialization of ‘int’ from ‘gpointer’ {aka ‘void *’} makes integer from pointer without a cast [-Wint-conversion]
g_autoptr(GEnumClass) klass = g_type_class_ref (enum_type);
^~~~~~~~~~~~~~~~
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:71:36: warning: passing argument 1 of ‘bolt_enum_class_validate’ makes pointer from integer without a cast [-Wint-conversion]
return bolt_enum_class_validate (klass, value, error);
^~~~~
../../../../Projects/jhbuild/gnome-control-center/panels/thunderbolt/bolt-enums.c:34:39: note: expected ‘GEnumClass *’ {aka ‘struct _GEnumClass *’} but argument is of type ‘int’
bolt_enum_class_validate (GEnumClass *enum_class,
~~~~~~~~~~~~^~~~~~~~~~