Fix structure initialisation not to cause warnings
This commit is contained in:
parent
53e1698aa3
commit
894033fab8
@ -2031,6 +2031,12 @@ START_TEST(test_attributes)
|
||||
info[0].attributes = doc_info;
|
||||
info[1].attributes = tag_info;
|
||||
|
||||
/* Silence some warnings: doc_info and tag_info are not computable
|
||||
* at load time, making the variable initialisation harder.
|
||||
*/
|
||||
info[0].attributes = doc_info;
|
||||
info[1].attributes = tag_info;
|
||||
|
||||
XML_SetStartElementHandler(parser, counting_start_element_handler);
|
||||
XML_SetUserData(parser, info);
|
||||
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR)
|
||||
|
Loading…
Reference in New Issue
Block a user