[patch] comma at end of enumerator list causes c++ packages to not compile



When attempting to build Mozilla, which uses gnome-vfs, I get the following:

c++ -o nsGnomeVFSProtocolHandler.o -c -DOSTYPE=\"Linux2.4.21-14\" -DOSARCH=\"Linux\" -DHAVE_DEPENDENT_LIBS -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orbit-2.0   -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include/necko -I../../dist/include/intl -I../../dist/include/mimetype -I../../dist/include/pref -I../../dist/include/nkgnomevfs -I../../dist/include -I/usr/src/build/434371-x86_64/BUILD/mozilla/dist/include/nspr     -I. -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -g -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsGnomeVFSProtocolHandler.pp nsGnomeVFSProtocolHandler.cpp
In file included from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:33,
                from nsGnomeVFSProtocolHandler.cpp:40:
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-dns-sd.h:51: error: comma at end of enumerator list


Here's the patch (also available as an attachment):

--- libgnomevfs/gnome-vfs-dns-sd.h.comma        2004-08-07 17:34:29.406056980 -0400
+++ libgnomevfs/gnome-vfs-dns-sd.h      2004-08-07 17:34:56.599952695 -0400
@@ -47,7 +47,7 @@
typedef enum {
       GNOME_VFS_DNS_SD_SERVICE_ADDED,
-       GNOME_VFS_DNS_SD_SERVICE_REMOVED,
+       GNOME_VFS_DNS_SD_SERVICE_REMOVED
} GnomeVFSDNSSDServiceStatus;
GType gnome_vfs_dns_sd_service_status_get_type (void);


--- libgnomevfs/gnome-vfs-dns-sd.h.comma	2004-08-07 17:34:29.406056980 -0400
+++ libgnomevfs/gnome-vfs-dns-sd.h	2004-08-07 17:34:56.599952695 -0400
@@ -47,7 +47,7 @@
 
 typedef enum {
 	GNOME_VFS_DNS_SD_SERVICE_ADDED,
-	GNOME_VFS_DNS_SD_SERVICE_REMOVED,
+	GNOME_VFS_DNS_SD_SERVICE_REMOVED
 } GnomeVFSDNSSDServiceStatus;
 
 GType gnome_vfs_dns_sd_service_status_get_type (void);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]