/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]

Bug #1007726 reported by Aurélien RIVIERE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Ubuntu 12.10
My code is here : http://bazaar.launchpad.net/~aurelien-riv/+junk/livewallpapers/files

cd ../.. && make (in directory: /home/ubuntu/dev/livewallpapers/trunk/livewallpapers-config/src)
cc -std=c89 -pedantic -W -Wall -Wextra -Wshadow -Wredundant-decls -Wnested-externs -Wundef -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -o livewallpaper-config livewallpapers-config/src/galaxy-settings.c livewallpapers-config/src/lwp-settings.c livewallpapers-config/src/main.c livewallpapers-config/src/nexus-settings.c livewallpapers-config/src/widgets.c `pkg-config --libs --cflags gtk+-3.0 appindicator3-0.1`
In file included from /usr/include/glib-2.0/gio/giotypes.h:30:0,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from livewallpapers-config/src/main.h:31,
                 from livewallpapers-config/src/galaxy-settings.h:20,
                 from livewallpapers-config/src/galaxy-settings.c:18:
/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]
In file included from /usr/include/glib-2.0/gio/giotypes.h:30:0,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from livewallpapers-config/src/lwp-settings.h:22,
                 from livewallpapers-config/src/lwp-settings.c:18:
/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]
In file included from /usr/include/glib-2.0/gio/giotypes.h:30:0,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from livewallpapers-config/src/main.h:31,
                 from livewallpapers-config/src/main.c:18:
/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]
livewallpapers-config/src/main.c: In function ‘main’:
livewallpapers-config/src/main.c:73:6: warning: assignment from incompatible pointer type [enabled by default]
In file included from /usr/include/glib-2.0/gio/giotypes.h:30:0,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from livewallpapers-config/src/nexus-settings.h:19,
                 from livewallpapers-config/src/nexus-settings.c:18:
/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]
In file included from /usr/include/glib-2.0/gio/giotypes.h:30:0,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from livewallpapers-config/src/main.h:31,
                 from livewallpapers-config/src/widgets.h:21,
                 from livewallpapers-config/src/widgets.c:18:
/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]

cd ../.. && make (in directory: /home/ubuntu/dev/livewallpapers/trunk/livewallpapers-config/src)
cc -std=c89 -pedantic -W -Wall -Wextra -Wshadow -Wredundant-decls -Wnested-externs -Wundef -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -o indicator-livewallpaper indicator-livewallpapers/src/main.c -pthread `pkg-config --libs --cflags gtk+-3.0 appindicator3-0.1`
In file included from /usr/include/glib-2.0/gio/giotypes.h:30:0,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from /usr/include/libappindicator3-0.1/libappindicator/app-indicator.h:33,
                 from indicator-livewallpapers/src/main.c:29:
/usr/include/glib-2.0/gio/gioenums.h:1653:23: warning: comma at end of enumerator list [-pedantic]
Compilation finished successfully.

Error : There is a coma there but it shouldn't :
typedef enum /*< flags >*/ {
  G_TEST_DBUS_NONE = 0,
} GTestDBusFlags;

/* /usr/include/glib-2.0/gio/gioenums.h:1653 */

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, that's in fact a glib issue and got fixed today in git:
http://git.gnome.org/browse/glib/commit/gio/gioenums.h?id=b9ec5699cd27334fdc605875bb0eeb818de64d4a

affects: gtk+3.0 (Ubuntu) → ubuntu
Changed in ubuntu:
importance: Undecided → Low
status: New → Fix Committed
affects: ubuntu → glib2.0 (Ubuntu)
Revision history for this message
Brian Murray (brian-murray) wrote :
Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.