From 09ecba9a53961c362044a04e40910ea2d6f34cd3 Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Thu, 24 Jul 2014 08:34:02 +0200 Subject: [PATCH] testtreemodel: fix unused variable on windows --- tests/testtreemodel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/testtreemodel.c b/tests/testtreemodel.c index 0c228ea407..c240b18aa9 100644 --- a/tests/testtreemodel.c +++ b/tests/testtreemodel.c @@ -212,7 +212,10 @@ test_run (gchar *title, gint i, k, d, items; GTimer *timer; gdouble elapsed; - int uordblks_before = 0, memused; + int memused; +#ifdef HAVE_MALLINFO + int uordblks_before = 0; +#endif g_print ("%s (average over %d runs, time in milliseconds)\n" "items \ttime \ttime/item \tused memory\n", title, repeats);