From: Robert Swain Date: Fri, 15 Apr 2011 13:12:44 +0000 (+0200) Subject: y4mencode: shapewipe: Address unused but set variables X-Git-Tag: 1.19.3~509^2~7136^2~627 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5c8c7708bcd92b3b4b558607527dee9380ada07;p=platform%2Fupstream%2Fgstreamer.git y4mencode: shapewipe: Address unused but set variables GCC 4.6.x complains about such usage. --- diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c index 49e0736..83005a0 100644 --- a/gst/shapewipe/gstshapewipe.c +++ b/gst/shapewipe/gstshapewipe.c @@ -824,7 +824,7 @@ gst_shape_wipe_blend_##name##_##depth (GstShapeWipe * self, GstBuffer * inbuf, \ gfloat position = self->mask_position; \ gfloat low = position - (self->mask_border / 2.0f); \ gfloat high = position + (self->mask_border / 2.0f); \ - guint32 low_i, high_i, position_i, round_i; \ + guint32 low_i, high_i, round_i; \ gint width = self->width, height = self->height; \ \ if (low < 0.0f) { \ @@ -837,7 +837,6 @@ gst_shape_wipe_blend_##name##_##depth (GstShapeWipe * self, GstBuffer * inbuf, \ high = 1.0f; \ } \ \ - position_i = position * 65536; \ low_i = low * 65536; \ high_i = high * 65536; \ round_i = (high_i - low_i) >> 1; \ diff --git a/gst/y4m/gsty4mencode.c b/gst/y4m/gsty4mencode.c index aba6ab7..4adaa5a 100644 --- a/gst/y4m/gsty4mencode.c +++ b/gst/y4m/gsty4mencode.c @@ -306,7 +306,7 @@ static void gst_y4m_encode_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) { - GstY4mEncode *filter; + GstY4mEncode G_GNUC_UNUSED *filter; g_return_if_fail (GST_IS_Y4M_ENCODE (object)); filter = GST_Y4M_ENCODE (object); @@ -321,7 +321,7 @@ static void gst_y4m_encode_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) { - GstY4mEncode *filter; + GstY4mEncode G_GNUC_UNUSED *filter; g_return_if_fail (GST_IS_Y4M_ENCODE (object)); filter = GST_Y4M_ENCODE (object);