From 24f6017ce50ef7770fa5944e8a5bc9824bf903b1 Mon Sep 17 00:00:00 2001 From: Andrew Potter Date: Thu, 30 May 2024 09:48:01 -0700 Subject: [PATCH] main: reinterpret_cast since old libxml2 isn't const... --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6932485..a410559 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -187,7 +187,7 @@ namespace { void init() { - xmlSetStructuredErrorFunc(nullptr, _xmlStructuredErrorFunc); + xmlSetStructuredErrorFunc(nullptr, reinterpret_cast(_xmlStructuredErrorFunc)); } int main(int argc, char* argv[])