GNOME Bugzilla – Bug 464366
program including gst/gstbuffer.h does not compile with -pedantic
Last modified: 2007-08-07 14:04:14 UTC
Hi, in a software including streamer-0.10/gst/gstbuffer.c, and compiling with -pedantic option, compilation fails with following error: /usr/include/gstreamer-0.10/gst/gstbuffer.h:359: error: comma at end of enumerator list My gcc version is: gcc (GCC) 4.1.3 20070718 (prerelease) (Debian 4.1.2-14)) modifying gstbuffer.h as follows, problem seems to disappear @@ -356,7 +356,7 @@ typedef enum { GST_BUFFER_COPY_FLAGS = (1 << 0), GST_BUFFER_COPY_TIMESTAMPS = (1 << 1), - GST_BUFFER_COPY_CAPS = (1 << 2) + GST_BUFFER_COPY_CAPS = (1 << 2), } GstBufferCopyFlags;
oups, the diff I send was reverse :( the real diff is : @@ -356,7 +356,7 @@ typedef enum { GST_BUFFER_COPY_FLAGS = (1 << 0), GST_BUFFER_COPY_TIMESTAMPS = (1 << 1), - GST_BUFFER_COPY_CAPS = (1 << 2), + GST_BUFFER_COPY_CAPS = (1 << 2) } GstBufferCopyFlags; /**
Patch by: <arenevier at fdn dot fr> * gst/gstbuffer.h: Remove comma from last element in enum to avoid compile errors when using -pendantic. Fixes #464366.