From eb15dcb47389b0fcb2929bc62f0e53bac55838f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 11 Apr 2011 20:09:14 +0100 Subject: [PATCH] capsdebug: fix unused-but-set-variable warnings with gcc 4.6 --- gst/debugutils/gstcapsdebug.c | 55 +---------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/gst/debugutils/gstcapsdebug.c b/gst/debugutils/gstcapsdebug.c index 3806bae6a8..dcb09962d8 100644 --- a/gst/debugutils/gstcapsdebug.c +++ b/gst/debugutils/gstcapsdebug.c @@ -32,10 +32,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_caps_debug_debug); /* prototypes */ -static void gst_caps_debug_set_property (GObject * object, - guint property_id, const GValue * value, GParamSpec * pspec); -static void gst_caps_debug_get_property (GObject * object, - guint property_id, GValue * value, GParamSpec * pspec); static void gst_caps_debug_dispose (GObject * object); static void gst_caps_debug_finalize (GObject * object); @@ -49,11 +45,6 @@ static GstFlowReturn gst_caps_debug_bufferalloc (GstPad * pad, static GstStateChangeReturn gst_caps_debug_change_state (GstElement * element, GstStateChange transition); -enum -{ - PROP_0 -}; - /* pad templates */ static GstStaticPadTemplate gst_caps_debug_sink_template = @@ -97,8 +88,6 @@ gst_caps_debug_class_init (GstCapsDebugClass * klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gobject_class->set_property = gst_caps_debug_set_property; - gobject_class->get_property = gst_caps_debug_get_property; gobject_class->dispose = gst_caps_debug_dispose; gobject_class->finalize = gst_caps_debug_finalize; element_class->change_state = GST_DEBUG_FUNCPTR (gst_caps_debug_change_state); @@ -132,46 +121,9 @@ gst_caps_debug_init (GstCapsDebug * capsdebug, } -void -gst_caps_debug_set_property (GObject * object, guint property_id, - const GValue * value, GParamSpec * pspec) -{ - GstCapsDebug *capsdebug; - - g_return_if_fail (GST_IS_CAPS_DEBUG (object)); - capsdebug = GST_CAPS_DEBUG (object); - - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - break; - } -} - -void -gst_caps_debug_get_property (GObject * object, guint property_id, - GValue * value, GParamSpec * pspec) -{ - GstCapsDebug *capsdebug; - - g_return_if_fail (GST_IS_CAPS_DEBUG (object)); - capsdebug = GST_CAPS_DEBUG (object); - - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - break; - } -} - void gst_caps_debug_dispose (GObject * object) { - GstCapsDebug *capsdebug; - - g_return_if_fail (GST_IS_CAPS_DEBUG (object)); - capsdebug = GST_CAPS_DEBUG (object); - /* clean up as possible. may be called multiple times */ G_OBJECT_CLASS (parent_class)->dispose (object); @@ -180,11 +132,6 @@ gst_caps_debug_dispose (GObject * object) void gst_caps_debug_finalize (GObject * object) { - GstCapsDebug *capsdebug; - - g_return_if_fail (GST_IS_CAPS_DEBUG (object)); - capsdebug = GST_CAPS_DEBUG (object); - /* clean up object here */ G_OBJECT_CLASS (parent_class)->finalize (object); @@ -199,7 +146,7 @@ gst_caps_debug_change_state (GstElement * element, GstStateChange transition) ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); - return GST_STATE_CHANGE_SUCCESS; + return ret; }