From: gkinkie@gmail.com Date: Sat, 4 Mar 2023 01:46:20 +0000 (+0000) Subject: ESI: Fix build [-Wdeprecated-declarations] (#1295) X-Git-Tag: SQUID_6_0_2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8274c3e17b1d9ce7baaee837f46485f0f36883e;p=thirdparty%2Fsquid.git ESI: Fix build [-Wdeprecated-declarations] (#1295) Replaced deprecated htmlDefaultSAXHandlerInit() libxml2 initialization call with xmlInitParser(). --- diff --git a/src/esi/Libxml2Parser.cc b/src/esi/Libxml2Parser.cc index ac2e73df7d..0f2e770682 100644 --- a/src/esi/Libxml2Parser.cc +++ b/src/esi/Libxml2Parser.cc @@ -108,7 +108,7 @@ esi_getEntitySAXFunc(void * /* ctx */, const xmlChar *name) ESILibxml2Parser::ESILibxml2Parser(ESIParserClient *aClient) : theClient (aClient) { xmlSAXHandler sax; - htmlDefaultSAXHandlerInit(); + xmlInitParser(); memset(&sax, 0, sizeof(sax)); sax.startElement = esi_startElementSAXFunc; sax.endElement = esi_endElementSAXFunc;