Failing tests with GCC 12 due to -Werror=address
FAIL: basic-types/arrays
========================
tests/_test.1113663/basic_types_arrays.c: In function 'test_integer_array':
tests/_test.1113663/basic_types_arrays.c:474:34: error: the comparison will always evaluate as 'true' for the pointer operand in '_tmp23_ + 4' must not be NULL [-Werror=address]
474 | _tmp24_ = ((_tmp23_ + 1) != NULL) ? _vala_array_dup2 (_tmp23_ + 1, 3 - 1) : (_tmp23_ + 1);
| ^~
FAIL: arrays/slice-fixed-length
===============================
tests/_test.1117776/arrays_slice_fixed_length.c: In function '_vala_main':
tests/_test.1117776/arrays_slice_fixed_length.c:228:37: error: the comparison will always evaluate as 'true' for the pointer operand in '(gchar **)&bar + 8' must not be NULL [-Werror=address]
228 | _tmp5_ = ((bar + 1) != NULL) ? _vala_array_dup1 (bar + 1, 3 - 1) : (bar + 1);
| ^~
FAIL: structs/bug777194
=======================
tests/_test.1130008/structs_bug777194.c: In function '_vala_main':
tests/_test.1130008/structs_bug777194.c:241:41: error: the comparison will always evaluate as 'true' for the address of 'fstack' will never be NULL [-Werror=address]
241 | _tmp5_ = (((guint8*) (&fstack)) != NULL) ? _vala_array_dup1 ((guint8*) (&fstack), sizeof (Foo) / sizeof (guint8)) : ((guint8*) (&fstack));
| ^~
FAIL: delegates/gclosure-conversion
===================================
tests/_test.1130475/delegates_gclosure_conversion.c: In function '_vala_main':
tests/_test.1130475/delegates_gclosure_conversion.c:442:249: error: the comparison will always evaluate as 'false' for the address of 'to_int' will never be NULL [-Werror=address]
442 | g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (foo, G_TYPE_OBJECT, GObject), "foo", G_TYPE_CHECK_INSTANCE_CAST (bar, G_TYPE_OBJECT, GObject), "bar", G_BINDING_BIDIRECTIONAL, (GClosure*) ((((GBindingTransformFunc) to_int) == NULL) ? NULL : g_cclosure_new ((GCallback) ((GBindingTransformFunc) to_int), NULL, (GClosureNotify) NULL)), (GClosure*) ((((GBindingTransformFunc) to_string) == NULL) ? NULL : g_cclosure_new ((GCallback) ((GBindingTransformFunc) to_string), NULL, (GClosureNotify) NULL)));
| ^~