]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
memory: Remove redundant guard around _dbus_decrement_fail_alloc_counter()
authorSimon McVittie <smcv@collabora.com>
Mon, 9 Dec 2024 18:25:27 +0000 (18:25 +0000)
committerSimon McVittie <smcv@collabora.com>
Tue, 10 Dec 2024 10:24:04 +0000 (10:24 +0000)
This function is already inside `#ifdef DBUS_ENABLE_EMBEDDED_TESTS`
and doesn't need a second layer of the same guard.

Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 6e61173d6462b2793c213aa13d4392f232d1c6ec)

dbus/dbus-memory.c

index be7e4ef6b122ee89929d1dcc9e8a6abe62ee64ae..cf3dd881a19fd6db9094c8d4a1547d93ded366f9 100644 (file)
@@ -244,7 +244,6 @@ _dbus_get_fail_alloc_failures (void)
   return n_failures_per_failure;
 }
 
-#ifdef DBUS_ENABLE_EMBEDDED_TESTS
 /**
  * Called when about to alloc some memory; if
  * it returns #TRUE, then the allocation should
@@ -286,7 +285,6 @@ _dbus_decrement_fail_alloc_counter (void)
       return FALSE;
     }
 }
-#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
 
 /**
  * Get the number of outstanding malloc()'d blocks.