mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Fix missing initializer warnings in glib/tests/gvariant.c
glib/tests/gvariant.c: In function ‘test_lookup_value’: glib/tests/gvariant.c:4353:5: error: missing initializer for field ‘value’ of ‘struct <anonymous>’ 4353 | { "@a{ss} {'x': 'y'}", "y" }, | ^ glib/tests/gvariant.c:4350:31: note: ‘value’ declared here 4350 | const gchar *dict, *key, *value; | ^~~~~ glib/tests/gvariant.c:4355:5: error: missing initializer for field ‘value’ of ‘struct <anonymous>’ 4355 | { "@a{os} {'/x': 'y'}", "/y" }, | ^ glib/tests/gvariant.c:4350:31: note: ‘value’ declared here 4350 | const gchar *dict, *key, *value; | ^~~~~ glib/tests/gvariant.c:4358:5: error: missing initializer for field ‘value’ of ‘struct <anonymous>’ 4358 | { "@a{sv} {'x': <'y'>}", "y" } | ^ glib/tests/gvariant.c:4350:31: note: ‘value’ declared here 4350 | const gchar *dict, *key, *value; | ^~~~~
This commit is contained in:
parent
43a30e4983
commit
0c81ed309e
@ -4355,12 +4355,12 @@ test_lookup_value (void)
|
||||
const gchar *dict, *key, *value;
|
||||
} cases[] = {
|
||||
{ "@a{ss} {'x': 'y'}", "x", "'y'" },
|
||||
{ "@a{ss} {'x': 'y'}", "y" },
|
||||
{ "@a{ss} {'x': 'y'}", "y", NULL },
|
||||
{ "@a{os} {'/x': 'y'}", "/x", "'y'" },
|
||||
{ "@a{os} {'/x': 'y'}", "/y" },
|
||||
{ "@a{os} {'/x': 'y'}", "/y", NULL },
|
||||
{ "@a{sv} {'x': <'y'>}", "x", "'y'" },
|
||||
{ "@a{sv} {'x': <5>}", "x", "5" },
|
||||
{ "@a{sv} {'x': <'y'>}", "y" }
|
||||
{ "@a{sv} {'x': <'y'>}", "y", NULL }
|
||||
};
|
||||
gsize i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user