From 02a57a01c603462ce8cc65fc64076a107ccf758e Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 1 Dec 2023 21:05:19 +0100 Subject: [PATCH] tests: Fix build with older libxml2 Fixes #99. --- tests/runtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/runtest.c b/tests/runtest.c index ea08824..f61c66a 100644 --- a/tests/runtest.c +++ b/tests/runtest.c @@ -456,7 +456,8 @@ initializeLibxml2(void) { xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader); xmlSetGenericErrorFunc(NULL, testErrorHandler); xsltSetGenericErrorFunc(NULL, testErrorHandler); - xmlSetStructuredErrorFunc(NULL, testStructuredErrorHandler); + xmlSetStructuredErrorFunc(NULL, + (xmlStructuredErrorFunc) testStructuredErrorHandler); exsltRegisterAll(); xsltRegisterTestModule(); xsltMaxDepth = 200; -- 2.45.1