From df8da56b14065bf6337f861105a830a7e5a3cb0b Mon Sep 17 00:00:00 2001 From: "gkinkie@gmail.com" Date: Sat, 4 Mar 2023 01:46:20 +0000 Subject: [PATCH] ESI: Fix build [-Wdeprecated-declarations] (#1295) Replaced deprecated htmlDefaultSAXHandlerInit() libxml2 initialization call with xmlInitParser(). --- src/esi/Libxml2Parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2