mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Fix missing initializer warnings in glib/tests/markup-subparser.c
In file included from glib/glib.h:60, from glib/tests/markup-subparser.c:14: glib/gmarkup.h:161:10: note: ‘text’ declared here 161 | void (*text) (GMarkupParseContext *context, | ^~~~ glib/tests/markup-subparser.c:335:3: error: missing initializer for field ‘error_message’ of ‘TestCase’ 335 | { "<test/>", "<test></test>" }, | ^ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~ glib/tests/markup-subparser.c:336:3: error: missing initializer for field ‘error_message’ of ‘TestCase’ 336 | { "<sub><foo/></sub>", "<sub><<{foo}{/foo}>></sub>" }, | ^ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~ glib/tests/markup-subparser.c:337:3: error: missing initializer for field ‘error_message’ of ‘TestCase’ 337 | { "<sub><foo/><bar/></sub>", "<sub><<{foo}{/foo}{bar}{/bar}>></sub>" }, | ^ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~ glib/tests/markup-subparser.c:338:3: error: missing initializer for field ‘error_message’ of ‘TestCase’ 338 | { "<foo><bar/></foo>", "<foo>[[{foo}{bar}{/bar}{/foo}]]</foo>" }, | ^ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~ glib/tests/markup-subparser.c:339:3: error: missing initializer for field ‘error_message’ of ‘TestCase’ 339 | { "<foo><x/><y/></foo>", "<foo>[[{foo}{x}{/x}{y}{/y}{/foo}]]</foo>" }, | ^ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~ glib/tests/markup-subparser.c:340:3: error: missing initializer for field ‘error_message’ of ‘TestCase’ 340 | { "<foo/>", "<foo>[[{foo}{/foo}]]</foo>" }, | ^ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~ glib/tests/markup-subparser.c:342:33: error: missing initializer for field ‘error_message’ of ‘TestCase’ 342 | "<bar>[[{bar}{/bar}]]</bar>" } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ glib/tests/markup-subparser.c:275:15: note: ‘error_message’ declared here 275 | const char *error_message; | ^~~~~~~~~~~~~
This commit is contained in:
parent
2eb66a2091
commit
043cf25631
@ -334,15 +334,15 @@ test (gconstpointer user_data)
|
||||
|
||||
TestCase test_cases[] = /* successful runs */
|
||||
{
|
||||
/* in */ /* out */
|
||||
{ "<test/>", "<test></test>" },
|
||||
{ "<sub><foo/></sub>", "<sub><<{foo}{/foo}>></sub>" },
|
||||
{ "<sub><foo/><bar/></sub>", "<sub><<{foo}{/foo}{bar}{/bar}>></sub>" },
|
||||
{ "<foo><bar/></foo>", "<foo>[[{foo}{bar}{/bar}{/foo}]]</foo>" },
|
||||
{ "<foo><x/><y/></foo>", "<foo>[[{foo}{x}{/x}{y}{/y}{/foo}]]</foo>" },
|
||||
{ "<foo/>", "<foo>[[{foo}{/foo}]]</foo>" },
|
||||
/* in */ /* out */ /* error */
|
||||
{ "<test/>", "<test></test>", NULL },
|
||||
{ "<sub><foo/></sub>", "<sub><<{foo}{/foo}>></sub>", NULL },
|
||||
{ "<sub><foo/><bar/></sub>", "<sub><<{foo}{/foo}{bar}{/bar}>></sub>", NULL },
|
||||
{ "<foo><bar/></foo>", "<foo>[[{foo}{bar}{/bar}{/foo}]]</foo>", NULL },
|
||||
{ "<foo><x/><y/></foo>", "<foo>[[{foo}{x}{/x}{y}{/y}{/foo}]]</foo>", NULL },
|
||||
{ "<foo/>", "<foo>[[{foo}{/foo}]]</foo>", NULL },
|
||||
{ "<sub><foo/></sub><bar/>", "<sub><<{foo}{/foo}>></sub>"
|
||||
"<bar>[[{bar}{/bar}]]</bar>" }
|
||||
"<bar>[[{bar}{/bar}]]</bar>", NULL }
|
||||
};
|
||||
|
||||
TestCase error_cases[] = /* error cases */
|
||||
|
Loading…
Reference in New Issue
Block a user