trace: add GST_ALLOC_TRACE_NONE for consistency and use it
authorJosep Torra <n770galaxy@gmail.com>
Thu, 25 Aug 2011 20:05:26 +0000 (22:05 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Fri, 26 Aug 2011 12:11:14 +0000 (14:11 +0200)
Fixes warning #188: enumerated type mixed with another type reported by ICC.

gst/gsttrace.c
gst/gsttrace.h

index 0a176c3..b857458 100644 (file)
@@ -262,7 +262,7 @@ _gst_trace_add_entry (GstTrace * trace, guint32 seq, guint32 data, gchar * msg)
 
 
 /* global flags */
-static GstAllocTraceFlags _gst_trace_flags = 0;
+static GstAllocTraceFlags _gst_trace_flags = GST_ALLOC_TRACE_NONE;
 
 /* list of registered tracers */
 static GList *_gst_alloc_tracers = NULL;
index 1de63fa..1882762 100644 (file)
@@ -30,13 +30,15 @@ G_BEGIN_DECLS
 
 /**
  * GstAllocTraceFlags:
- * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory
- * @GST_ALLOC_TRACE_MEM_LIVE: trace pointers of unfreed memory
+ * @GST_ALLOC_TRACE_NONE: No tracing specified or desired.
+ * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory.
+ * @GST_ALLOC_TRACE_MEM_LIVE: Trace pointers of unfreed memory.
  *
  * Flags indicating which tracing feature to enable.
  */
 typedef enum {
-  GST_ALLOC_TRACE_LIVE         = (1 << 0),
+  GST_ALLOC_TRACE_NONE      = 0,
+  GST_ALLOC_TRACE_LIVE      = (1 << 0),
   GST_ALLOC_TRACE_MEM_LIVE     = (1 << 1)
 } GstAllocTraceFlags;