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 <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-09-25 14:30:48 +01:00
parent 049149c4b7
commit 2691c5e24e
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -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)
{