From e8274c3e17b1d9ce7baaee837f46485f0f36883e 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 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; -- 2.47.2