From e27e691a7cb9907d52534d001c0bcc61c145c8d1 Mon Sep 17 00:00:00 2001 From: ewewukek Date: Thu, 4 Jan 2024 15:12:37 +0300 Subject: Const correct variable to hold __xmlParserVersion() value --- src/unittests/utils/dumplibs.cc | 2 +- src/utils/dumplibs.cpp | 2 +- 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 -- cgit v1.2.3-60-g2f50