mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 10:45:13 +01:00
glib/gvariant: Fix check for G_ANALYZER_ANALYZING
This is _always_ defined in gmacros.h and therefore the #ifdef will always be 1 even if were disabled. Just #if instead. Closes: #3480
This commit is contained in:
parent
c6e8365133
commit
800222c3c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user