audioresample: fix unused-but-set-variable warnings with gcc 4.6
authorMarc Plano-Lesay <marc.planolesay@gmail.com>
Thu, 14 Apr 2011 07:32:19 +0000 (09:32 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 24 Apr 2011 11:43:33 +0000 (12:43 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=647294

gst/audioresample/gstaudioresample.c

index 8f9ea3b..9364a86 100644 (file)
@@ -1464,7 +1464,7 @@ gst_audio_resample_get_property (GObject * object, guint prop_id,
 static gboolean
 _benchmark_int_float (SpeexResamplerState * st)
 {
-  gint16 in[BENCHMARK_SIZE] = { 0, }, out[BENCHMARK_SIZE / 2];
+  gint16 in[BENCHMARK_SIZE] = { 0, }, G_GNUC_UNUSED out[BENCHMARK_SIZE / 2];
   gfloat in_tmp[BENCHMARK_SIZE], out_tmp[BENCHMARK_SIZE / 2];
   gint i;
   guint32 inlen = BENCHMARK_SIZE, outlen = BENCHMARK_SIZE / 2;