From 4bd79e157ce7907003cb3ee8ec2f62eaf4d3678e Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 7 May 2021 08:41:59 +0000 Subject: * xml/apr_xml.c (apr_xml_parser_done): Drop variable and pass the empty string to ->Parse(), avoiding GCC 11 warning. No functional change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1889605 13f79535-47bb-0310-9956-ffa450edef68 --- xml/apr_xml.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xml') diff --git a/xml/apr_xml.c b/xml/apr_xml.c index 82791f49d..3897ed4af 100644 --- a/xml/apr_xml.c +++ b/xml/apr_xml.c @@ -348,8 +348,7 @@ APR_DECLARE(apr_status_t) apr_xml_parser_feed(apr_xml_parser *parser, APR_DECLARE(apr_status_t) apr_xml_parser_done(apr_xml_parser *parser, apr_xml_doc **pdoc) { - char end; - apr_status_t status = parser->impl->Parse(parser, &end, 0, 1 /* is_final */); + apr_status_t status = parser->impl->Parse(parser, "", 0, 1 /* is_final */); /* get rid of the parser */ (void) apr_pool_cleanup_run(parser->p, parser, parser->impl->cleanup); -- cgit v1.2.1