Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
build: Do not scan glib-autocleanups.h for GLib-2.0.gir
Since autoptr typedefs are filtered out (bug #755882), scanning this header
is useless. It can cause warnings due to not #including all the headers
whose types it references:
   /usr/include/glib-2.0/glib/glib-autocleanups.h:41: syntax error,
   unexpected typedef-name, expecting identifier or '(' in 'typedef
   GAsyncQueue *GAsyncQueue_autoptr;' at 'GAsyncQueue_autoptr'

Fix that by filtering it out of the list of headers to scan.

https://bugzilla.gnome.org/show_bug.cgi?id=768816
  • Loading branch information
Philip Withnall committed Nov 21, 2016
1 parent b49b567 commit 43de9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile-gir.am
Expand Up @@ -78,7 +78,7 @@ GLib_2_0_gir_CFLAGS = \
-D__G_I18N_LIB_H__
GLib_2_0_gir_FILES = \
$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \
$(GLIB_INCLUDEDIR)/glib/*.h \
$(filter-out $(GLIB_INCLUDEDIR)/glib/glib-autocleanups.h,$(wildcard $(GLIB_INCLUDEDIR)/glib/*.h)) \
$(GLIB_INCLUDEDIR)/gobject/glib-types.h \
gir/glib-2.0.c
if HAVE_GIO_UNIX
Expand Down

0 comments on commit 43de9fb

Please sign in to comment.