mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
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:
parent
049149c4b7
commit
2691c5e24e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user