From: Thiago Santos Date: Wed, 26 Aug 2015 12:29:05 +0000 (-0300) Subject: tests: event: fix build failure X-Git-Tag: 1.6.1~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a1f05865fc10b892749d67a8282be7ec8cb3eca;p=platform%2Fupstream%2Fgstreamer.git tests: event: fix build failure gst/gstevent.c:250:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode --- diff --git a/tests/check/gst/gstevent.c b/tests/check/gst/gstevent.c index 0983a69..387f229 100644 --- a/tests/check/gst/gstevent.c +++ b/tests/check/gst/gstevent.c @@ -243,11 +243,12 @@ GST_START_TEST (create_events) const gchar *parsed_id; GstBuffer *parsed_data; const gchar clearkey_sys_id[] = "78f32170-d883-11e0-9572-0800200c9a66"; + gsize offset; data = gst_buffer_new (); mem = gst_allocator_alloc (NULL, 40, NULL); gst_buffer_insert_memory (data, -1, mem); - for (gsize offset = 0; offset < 40; offset += 4) { + for (offset = 0; offset < 40; offset += 4) { gst_buffer_fill (data, offset, "pssi", 4); } ASSERT_MINI_OBJECT_REFCOUNT (data, "data", 1);