]> granicus.if.org Git - libexpat/commitdiff
Revert "Fix structure initialisation not to cause warnings"
authorSebastian Pipping <sebastian@pipping.org>
Sun, 16 Jul 2017 21:01:15 +0000 (23:01 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 16 Jul 2017 21:02:30 +0000 (23:02 +0200)
This reverts commit 894033fab8487164d7e2f20141bca8ad75d28311.

expat/tests/runtests.c

index edfd88806dff9ae7174e82d34f9112fceb32c1b2..edbba809f0d435c257a0a10affa42e6072daf86d 100644 (file)
@@ -2289,12 +2289,6 @@ 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)