From 527525a282c56643ea40286928c72dc7fdbecc35 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 31 Dec 2000 23:31:51 +0000 Subject: [PATCH] Fix some compile warnings Original commit message from CVS: Fix some compile warnings --- gst/Makefile.am | 2 +- gst/elements/gstfakesrc.c | 1 - gst/gstbin.c | 4 +++- gst/gstpad.c | 2 +- plugins/elements/gstfakesrc.c | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/Makefile.am b/gst/Makefile.am index 2b58c3a982..9d3096fa1d 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -82,7 +82,7 @@ noinst_HEADERS = \ gsti386.h \ gstppc.h -CFLAGS += -O2 -Wall +CFLAGS += -Wall libgst_la_LIBADD = $(GLIB_LIBS) $(GTK_LIBS) $(XML_LIBS) libgst_la_LDFLAGS = -version-info $(STREAMER_CURRENT):$(STREAMER_REVISION):$(STREAMER_AGE) diff --git a/gst/elements/gstfakesrc.c b/gst/elements/gstfakesrc.c index a206cad09a..0ca9606388 100644 --- a/gst/elements/gstfakesrc.c +++ b/gst/elements/gstfakesrc.c @@ -156,7 +156,6 @@ static void gst_fakesrc_update_functions (GstFakeSrc *src) { GSList *pads; - GstPadGetFunction func; pads = src->srcpads; while (pads) { diff --git a/gst/gstbin.c b/gst/gstbin.c index 493cc0c96a..2b5e47b155 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -566,7 +566,9 @@ gst_bin_create_plan_func (GstBin *bin) GstElement *manager; GList *elements; GstElement *element; +#ifdef GST_DEBUG_ENABLED const gchar *elementname; +#endif GSList *pending = NULL; GstBin *pending_bin; @@ -706,7 +708,7 @@ gst_bin_iterate_func (GstBin *bin) GstElement *entry; GList *pads; GstPad *pad; - GstBuffer *buf; + GstBuffer *buf = NULL; DEBUG_SET_STRING("(\"%s\")", gst_element_get_name (GST_ELEMENT (bin))); DEBUG_ENTER_STRING; diff --git a/gst/gstpad.c b/gst/gstpad.c index b897a419b0..77adb30b3a 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1045,7 +1045,7 @@ gst_pad_eos_func(GstPad *pad) GstElement *element; GList *pads; GstPad *srcpad; - gboolean result, success = TRUE; + gboolean result = TRUE, success; g_return_val_if_fail (pad != NULL, FALSE); g_return_val_if_fail (GST_IS_PAD(pad), FALSE); diff --git a/plugins/elements/gstfakesrc.c b/plugins/elements/gstfakesrc.c index a206cad09a..0ca9606388 100644 --- a/plugins/elements/gstfakesrc.c +++ b/plugins/elements/gstfakesrc.c @@ -156,7 +156,6 @@ static void gst_fakesrc_update_functions (GstFakeSrc *src) { GSList *pads; - GstPadGetFunction func; pads = src->srcpads; while (pads) {