summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unittests/utils/dumplibs.cc2
-rw-r--r--src/utils/dumplibs.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unittests/utils/dumplibs.cc b/src/unittests/utils/dumplibs.cc
index be9527a87..15dc05b98 100644
--- a/src/unittests/utils/dumplibs.cc
+++ b/src/unittests/utils/dumplibs.cc
@@ -57,7 +57,7 @@ TEST_CASE("dumplibs tests", "")
#ifdef ENABLE_LIBXML
SECTION("libxml2")
{
- const char **xmlVersion = __xmlParserVersion();
+ const char *const *xmlVersion = __xmlParserVersion();
REQUIRE(xmlVersion != nullptr);
REQUIRE(*xmlVersion != nullptr);
REQUIRE(std::string(*xmlVersion) ==
diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp
index 8b13cdd38..1bdcb139e 100644
--- a/src/utils/dumplibs.cpp
+++ b/src/utils/dumplibs.cpp
@@ -140,7 +140,7 @@ void dumpLibs()
LIBXML_TEST_VERSION
#endif // LIBXML_TEST_VERSION
#ifdef ENABLE_LIBXML
- const char **xmlVersion = __xmlParserVersion();
+ const char *const *xmlVersion = __xmlParserVersion();
if (xmlVersion != nullptr)
logger->log(" libxml2: %s", *xmlVersion);
#endif // ENABLE_LIBXML