From 11e28c01469e8431bb334d85fff0ee5708532bf0 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 6 Aug 2003 22:35:16 +0000 Subject: [PATCH] compiler warning fix Original commit message from CVS: compiler warning fix --- gst/gstelementfactory.c | 2 -- gst/gstpad.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 7817bc1332..bb3ef8e455 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -133,8 +133,6 @@ gst_element_factory_cleanup (GstElementFactory *factory) padtemplates = factory->padtemplates; while (padtemplates) { - GstPadTemplate *oldtempl = GST_PAD_TEMPLATE (padtemplates->data); - /* We leak the padtemplates, since they're generally not properly * ref'ed by the factories */ /* gst_object_unref (GST_OBJECT (oldtempl)); */ diff --git a/gst/gstpad.c b/gst/gstpad.c index b5c293d2cc..d74dd1be54 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1311,7 +1311,7 @@ gst_pad_get_ghost_pad_list (GstPad *pad) static GstPadLinkReturn gst_pad_try_set_caps_func (GstRealPad *pad, GstCaps *caps, gboolean notify) { - GstCaps *oldcaps, *allowed = NULL; + GstCaps *allowed = NULL; GstPadTemplate *template; GstElement *parent = GST_PAD_PARENT (pad);