From 2691c5e24ee82f20f30fffbd85b527587df45f69 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 25 Sep 2024 14:30:48 +0100 Subject: [PATCH] gdbusdaemon: Fix check for G_ANALYZER_ANALYZING As with the previous commit, this is _always_ defined in `gmacros.h` and therefore the `#ifndef` will always be 0 even if disabled. Just use `#if` instead. Signed-off-by: Philip Withnall --- gio/gdbusdaemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c index 2d04abcbb..ec8427a80 100644 --- a/gio/gdbusdaemon.c +++ b/gio/gdbusdaemon.c @@ -187,7 +187,7 @@ name_unref (Name *name) * So, until the static analysis improves, or we find some way to restructure * the code, squash the false positive use-after-free or double-unref warnings * by making this function a no-op to the static analyser. */ -#ifndef G_ANALYZER_ANALYZING +#if !G_ANALYZER_ANALYZING g_assert (name->refcount > 0); if (--name->refcount == 0) {