tools, tests: fix some unused-but-set-variable compiler warnings
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 4 Jun 2011 13:13:07 +0000 (14:13 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 4 Jun 2011 13:13:07 +0000 (14:13 +0100)
tests/check/gst/gstpad.c
tools/gst-inspect.c
tools/gst-xmlinspect.c

index 43fc8c4..fdfe959 100644 (file)
@@ -464,7 +464,6 @@ GST_START_TEST (test_push_buffer_list_compat)
   GstCaps *caps;
   GstBufferList *list;
   GstBuffer *buffer;
-  guint len;
 
   /* setup */
   sink = gst_pad_new ("sink", GST_PAD_SINK);
@@ -492,8 +491,6 @@ GST_START_TEST (test_push_buffer_list_compat)
 
   /* test */
   /* adding to a buffer list will drop the ref to the buffer */
-  len = gst_buffer_list_len (list);
-
   gst_buffer_list_add (list, buffer_from_string ("ListGroup"));
   gst_buffer_list_add (list, buffer_from_string ("AnotherListGroup"));
 
@@ -579,7 +576,6 @@ GST_START_TEST (test_push_negotiation)
   GstPadTemplate *src_template;
   GstPadTemplate *sink_template;
   GstCaps *caps;
-  GstBuffer *buffer;
 
   /* setup */
   src_template = gst_pad_template_new ("src", GST_PAD_SRC,
@@ -599,8 +595,6 @@ GST_START_TEST (test_push_negotiation)
   plr = gst_pad_link (src, sink);
   fail_unless (GST_PAD_LINK_SUCCESSFUL (plr));
 
-  buffer = gst_buffer_new ();
-
   /* activate pads */
   gst_pad_set_active (src, TRUE);
   gst_pad_set_active (sink, TRUE);
@@ -850,13 +844,12 @@ GST_START_TEST (test_block_async_full_destroy_dispose)
   GstPad *pad;
   /* 0 = unblocked, 1 = blocked, 2 = destroyed */
   gint state = 0;
-  gulong id;
 
   pad = gst_pad_new ("src", GST_PAD_SRC);
   fail_unless (pad != NULL);
   gst_pad_set_active (pad, TRUE);
 
-  id = gst_pad_add_probe (pad, GST_PROBE_TYPE_BLOCK, block_async_full_cb,
+  (void) gst_pad_add_probe (pad, GST_PROBE_TYPE_BLOCK, block_async_full_cb,
       &state, block_async_full_destroy);
 
   gst_pad_push (pad, gst_buffer_new ());
index d13bcd5..380258b 100644 (file)
@@ -689,10 +689,8 @@ print_element_flag_info (GstElement * element)
 static void
 print_implementation_info (GstElement * element)
 {
-  GstObjectClass *gstobject_class;
   GstElementClass *gstelement_class;
 
-  gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
   gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
 
   n_print ("\n");
index 32afd4e..72e657a 100644 (file)
@@ -449,7 +449,6 @@ static gint
 print_element_info (GstElementFactory * factory)
 {
   GstElement *element;
-  GstObjectClass *gstobject_class;
   GstElementClass *gstelement_class;
   GList *pads;
   GstPad *pad;
@@ -464,7 +463,6 @@ print_element_info (GstElementFactory * factory)
   PUT_START_TAG (0, "element");
   PUT_ESCAPED (1, "name", GST_OBJECT_NAME (factory));
 
-  gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
   gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
 
   PUT_START_TAG (1, "details");