[gtk+] testtreemodel: fix unused variable on windows



commit 09ecba9a53961c362044a04e40910ea2d6f34cd3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Jul 24 08:34:02 2014 +0200

    testtreemodel: fix unused variable on windows

 tests/testtreemodel.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/testtreemodel.c b/tests/testtreemodel.c
index 0c228ea..c240b18 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);


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