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) { diff --git a/glib/gvariant.c b/glib/gvariant.c index e69a402e9..a0832abee 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -3504,7 +3504,7 @@ g_variant_builder_init (GVariantBuilder *builder, g_assert_not_reached (); } -#ifdef G_ANALYZER_ANALYZING +#if G_ANALYZER_ANALYZING /* Static analysers can’t couple the code in g_variant_builder_init() to the * code in g_variant_builder_end() by GVariantType, so end up assuming that * @offset and @children mismatch and that uninitialised memory is accessed