e9d43d6a33
Add upstream build fix for gcc14 failure OBS-URL: https://build.opensuse.org/request/show/1176766 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxslt?expand=0&rev=103
28 lines
895 B
Diff
28 lines
895 B
Diff
From 02a57a01c603462ce8cc65fc64076a107ccf758e Mon Sep 17 00:00:00 2001
|
|
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
|
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
|
|
|