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_5_9~11 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=df8da56b14065bf6337f861105a830a7e5a3cb0b;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 09f640a697..ae730a0718 100644 --- a/src/esi/Libxml2Parser.cc +++ b/src/esi/Libxml2Parser.cc @@ -81,7 +81,7 @@ xmlEntityPtr 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;