tests: event: fix build failure
authorThiago Santos <thiagoss@osg.samsung.com>
Wed, 26 Aug 2015 12:29:05 +0000 (09:29 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 26 Aug 2015 12:29:05 +0000 (09:29 -0300)
gst/gstevent.c:250:5: error: ‘for’ loop initial declarations are only
allowed in C99 or C11 mode

tests/check/gst/gstevent.c

index 0983a69..387f229 100644 (file)
@@ -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);