GNOME Bugzilla – Bug 776198
Stray semicolon after g_variant_print() function in gvariant.c
Last modified: 2016-12-27 19:55:05 UTC
When building glib with the Solaris Studio compilers, cc warns: "gvariant.c", line 2621: warning: syntax error: empty declaration due to the extra semicolon hanging out after the end of the g_variant_print() function: 2615 gchar * 2616 g_variant_print (GVariant *value, 2617 gboolean type_annotate) 2618 { 2619 return g_string_free (g_variant_print_string (value, NULL, type_annotate), 2620 FALSE); 2621 }; gcc will also flag it if you enable pedantic warnings: gvariant.c: At top level: gvariant.c:2621:2: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] }; ^
Created attachment 342105 [details] [review] Patch currently used in Solaris builds
Review of attachment 342105 [details] [review]: Thanks very much. Can you commit this?
Comment on attachment 342105 [details] [review] Patch currently used in Solaris builds Pushed as commit 9b3cb4470d1d3458dd2ee78ab675123a37fa332a.