[grilo/0.1.x] core: Avoid pedantic compiler warnings with C++.



commit bf431b8b71cf47b939e237a5741b258f7f0b45ad
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jul 10 12:38:03 2012 +0200

    core: Avoid pedantic compiler warnings with C++.
    
    g++ complains about trailing commas in enums when using
    -Wpedantic.
    
    This fixes https://bugzilla.gnome.org/show_bug.cgi?id=679674
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>

 autogen.sh                 |    2 +-
 libs/net/grl-net-wc.c      |    2 +-
 libs/net/grl-net-wc.h      |    2 +-
 src/grl-media-source.c     |    4 ++--
 src/grl-media-source.h     |    2 +-
 src/grl-metadata-source.c  |    2 +-
 src/grl-metadata-source.h  |    6 +++---
 src/grl-plugin-registry.c  |    2 +-
 src/grl-plugin-registry.h  |    2 +-
 tools/grilo-test-ui/main.c |   10 +++++-----
 10 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 1bdfde4..1569f7b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -20,4 +20,4 @@ which gnome-autogen.sh || {
 REQUIRED_AUTOMAKE_VERSION=1.10 \
 USE_GNOME2_MACROS=1 \
 USE_COMMON_DOC_BUILD=yes \
-. gnome-autogen.sh $*
+bash gnome-autogen.sh $*
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index 68c9971..ebb15cf 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -52,7 +52,7 @@ enum {
   PROP_THROTTLING,
   PROP_CACHE,
   PROP_CACHE_SIZE,
-  PROP_USER_AGENT,
+  PROP_USER_AGENT
 };
 
 #define GRL_NET_WC_GET_PRIVATE(object)			\
diff --git a/libs/net/grl-net-wc.h b/libs/net/grl-net-wc.h
index fc472e0..58509bd 100644
--- a/libs/net/grl-net-wc.h
+++ b/libs/net/grl-net-wc.h
@@ -54,7 +54,7 @@ typedef enum {
 	GRL_NET_WC_ERROR_FORBIDDEN,
 	GRL_NET_WC_ERROR_NETWORK_ERROR,
 	GRL_NET_WC_ERROR_PROXY_ERROR,
-	GRL_NET_WC_ERROR_CANCELLED,
+	GRL_NET_WC_ERROR_CANCELLED
 } GrlNetWcError;
 
 #define GRL_TYPE_NET_WC				\
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 1f43720..cd1d20d 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -64,7 +64,7 @@ GRL_LOG_DOMAIN(media_source_log_domain);
 
 enum {
   PROP_0,
-  PROP_AUTO_SPLIT_THRESHOLD,
+  PROP_AUTO_SPLIT_THRESHOLD
 };
 
 struct _GrlMediaSourcePrivate {
@@ -172,7 +172,7 @@ grl_media_source_supported_operations (GrlMetadataSource *metadata_source);
 
 enum {
   SIG_CONTENT_CHANGED,
-  SIG_LAST,
+  SIG_LAST
 };
 static gint registry_signals[SIG_LAST];
 
diff --git a/src/grl-media-source.h b/src/grl-media-source.h
index 02f43ad..edb6b09 100644
--- a/src/grl-media-source.h
+++ b/src/grl-media-source.h
@@ -76,7 +76,7 @@
 typedef enum {
   GRL_CONTENT_CHANGED,
   GRL_CONTENT_ADDED,
-  GRL_CONTENT_REMOVED,
+  GRL_CONTENT_REMOVED
 } GrlMediaSourceChangeType;
 
 /* GrlMediaSource object */
diff --git a/src/grl-metadata-source.c b/src/grl-metadata-source.c
index f2a4ca0..e036a66 100644
--- a/src/grl-metadata-source.c
+++ b/src/grl-metadata-source.c
@@ -67,7 +67,7 @@ enum {
   PROP_0,
   PROP_ID,
   PROP_NAME,
-  PROP_DESC,
+  PROP_DESC
 };
 
 struct _GrlMetadataSourcePrivate {
diff --git a/src/grl-metadata-source.h b/src/grl-metadata-source.h
index 4238da8..338c33b 100644
--- a/src/grl-metadata-source.h
+++ b/src/grl-metadata-source.h
@@ -76,7 +76,7 @@ typedef enum {
   GRL_RESOLVE_NORMAL     = 0,        /* Normal mode */
   GRL_RESOLVE_FULL       = (1 << 0), /* Try other plugins if necessary */
   GRL_RESOLVE_IDLE_RELAY = (1 << 1), /* Use idle loop to relay results */
-  GRL_RESOLVE_FAST_ONLY  = (1 << 2), /* Only resolve fast metadata keys */
+  GRL_RESOLVE_FAST_ONLY  = (1 << 2)  /* Only resolve fast metadata keys */
 } GrlMetadataResolutionFlags;
 
 /**
@@ -88,7 +88,7 @@ typedef enum {
  */
 typedef enum {
   GRL_WRITE_NORMAL     = 0,        /* Normal mode */
-  GRL_WRITE_FULL       = (1 << 0), /* Try other plugins if necessary */
+  GRL_WRITE_FULL       = (1 << 0)  /* Try other plugins if necessary */
 } GrlMetadataWritingFlags;
 
 /* GrlMetadataSource object */
@@ -226,7 +226,7 @@ typedef enum {
   GRL_OP_REMOVE          = 1 << 7,
   GRL_OP_SET_METADATA    = 1 << 8,
   GRL_OP_MEDIA_FROM_URI  = 1 << 9,
-  GRL_OP_NOTIFY_CHANGE   = 1 << 10,
+  GRL_OP_NOTIFY_CHANGE   = 1 << 10
 } GrlSupportedOps;
 
 /* GrlMetadataSource class */
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index d3fe3ae..52a3fa7 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -92,7 +92,7 @@ static void grl_plugin_registry_load_plugin_info_all (GrlPluginRegistry *registr
 enum {
   SIG_SOURCE_ADDED,
   SIG_SOURCE_REMOVED,
-  SIG_LAST,
+  SIG_LAST
 };
 static gint registry_signals[SIG_LAST];
 
diff --git a/src/grl-plugin-registry.h b/src/grl-plugin-registry.h
index fab4bfe..42cc387 100644
--- a/src/grl-plugin-registry.h
+++ b/src/grl-plugin-registry.h
@@ -162,7 +162,7 @@ typedef enum {
   GRL_PLUGIN_RANK_LOW     = -32,
   GRL_PLUGIN_RANK_DEFAULT =   0,
   GRL_PLUGIN_RANK_HIGH    =  32,
-  GRL_PLUGIN_RANK_HIGHEST =  64,
+  GRL_PLUGIN_RANK_HIGHEST =  64
 } GrlPluginRank;
 
 /* GrlPluginRegistry object */
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 342d6e7..684475c 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -89,22 +89,22 @@ enum {
   BROWSER_MODEL_CONTENT,
   BROWSER_MODEL_TYPE,
   BROWSER_MODEL_NAME,
-  BROWSER_MODEL_ICON,
+  BROWSER_MODEL_ICON
 };
 
 enum {
   METADATA_MODEL_NAME = 0,
-  METADATA_MODEL_VALUE,
+  METADATA_MODEL_VALUE
 };
 
 enum {
   SEARCH_MODEL_NAME = 0,
-  SEARCH_MODEL_SOURCE,
+  SEARCH_MODEL_SOURCE
 };
 
 enum {
   QUERY_MODEL_NAME = 0,
-  QUERY_MODEL_SOURCE,
+  QUERY_MODEL_SOURCE
 };
 
 typedef struct {
@@ -159,7 +159,7 @@ typedef struct {
     OP_TYPE_BROWSE,
     OP_TYPE_SEARCH,
     OP_TYPE_QUERY,
-    OP_TYPE_MULTI_SEARCH,
+    OP_TYPE_MULTI_SEARCH
   } type;
   guint offset;
   guint count;



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