From: Simon McVittie Date: Thu, 14 Jul 2011 17:47:18 +0000 (+0100) Subject: dbus-memory: move variable only used on Windows into the conditional X-Git-Tag: dbus-1.5.8~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=436b8fc7822d13d31fcfd379ef4fed2a8c5ac102;p=thirdparty%2Fdbus.git dbus-memory: move variable only used on Windows into the conditional Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson --- diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index ee40e82b1..c5f464137 100644 --- a/dbus/dbus-memory.c +++ b/dbus/dbus-memory.c @@ -233,7 +233,6 @@ _dbus_get_fail_alloc_failures (void) } #ifdef DBUS_BUILD_TESTS -static dbus_bool_t called = 0; /** * Called when about to alloc some memory; if * it returns #TRUE, then the allocation should @@ -248,6 +247,8 @@ _dbus_decrement_fail_alloc_counter (void) _dbus_initialize_malloc_debug (); #ifdef DBUS_WIN_FIXME { + static dbus_bool_t called = 0; + if (!called) { _dbus_verbose("TODO: memory allocation testing errors disabled for now\n");