[gtk+/gtk-3-22] tests: Fix use of C99 inline declaration



commit c00448f7c6ad8d56718639055359e92e7784cdf7
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Mar 7 09:47:30 2017 +0000

    tests: Fix use of C99 inline declaration
    
    We don’t claim to use them yet, even if we perhaps should.

 tests/testheightforwidth.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c
index a27ad5c..3312282 100644
--- a/tests/testheightforwidth.c
+++ b/tests/testheightforwidth.c
@@ -989,7 +989,9 @@ create_window (void)
 static gboolean
 main_window_delete_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data)
 {
-  for (gsize i = 0; i < G_N_ELEMENTS (interfaces); ++i)
+  gsize i;
+
+  for (i = 0; i < G_N_ELEMENTS (interfaces); ++i)
     {
       if (interfaces[i].window)
         gtk_widget_destroy (interfaces[i].window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]