mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
Address warning "initializer element is not computable at load time"
This commit is contained in:
parent
a494d5358a
commit
f0b63f56c8
1 changed files with 4 additions and 2 deletions
|
@ -1710,10 +1710,12 @@ START_TEST(test_attributes)
|
|||
{ NULL, NULL }
|
||||
};
|
||||
ElementInfo info[] = {
|
||||
{ "doc", 3, "id", doc_info },
|
||||
{ "tag", 1, NULL, tag_info },
|
||||
{ "doc", 3, "id", NULL },
|
||||
{ "tag", 1, NULL, NULL },
|
||||
{ NULL, 0, NULL, NULL }
|
||||
};
|
||||
info[0].attributes = doc_info;
|
||||
info[1].attributes = tag_info;
|
||||
|
||||
XML_SetStartElementHandler(parser, counting_start_element_handler);
|
||||
XML_SetUserData(parser, info);
|
||||
|
|
Loading…
Add table
Reference in a new issue