GNOME Bugzilla – Bug 691775
master fails to build: tester.h:483:57: error: expected ',' or ';' before 'extern'
Last modified: 2013-01-15 14:40:07 UTC
A few days ago, jhbuild build has started breaking very early on building gtk-doc: GEN .gitignore In file included from tester.c:23:0: tester.h:483:57: error: expected ',' or ';' before 'extern' make[3]: *** [tester.lo] Error 1 This is the following line in tester.h: void bug_624001e (void) GLIB_DEPRECATED; which with gcc -E expands to void bug_624001e (void) __attribute__((__deprecated__)) extern; I'm not sure why GLIB_DEPRECATED expands to "extern", but glib's own headers use it as a prefix, e. g. in /glib/gstrfuncs.h: LIB_DEPRECATED gint g_strcasecmp (const gchar *s1, const gchar *s2);
Created attachment 233512 [details] [review] Use GLIB_DEPRECATED as a prefix With this, gtk-doc builds fine again. Thanks for considering!
Review of attachment 233512 [details] [review]: Since GLIB_DEPRECATED is a for-GLIB-use-only thing, it's sort of annoying to see it in another module... Meanwhile, I guess it's just a testcase, so that's fine. Please push :)
Pushed, thanks!