From f0b63f56c8c251e3f35f20dd0bce43e0ce0f753f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 28 May 2017 15:02:19 +0200 Subject: [PATCH] Address warning "initializer element is not computable at load time" --- expat/tests/runtests.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 4adedf91..09db3b56 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -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);