From c00448f7c6ad8d56718639055359e92e7784cdf7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 7 Mar 2017 09:47:30 +0000 Subject: [PATCH] tests: Fix use of C99 inline declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t claim to use them yet, even if we perhaps should. --- tests/testheightforwidth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c index a27ad5c275..3312282afe 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);