diff options
author | ewewukek <ewewukek@gmail.com> | 2024-01-04 15:12:37 +0300 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-02-21 22:15:28 +0000 |
commit | e27e691a7cb9907d52534d001c0bcc61c145c8d1 (patch) | |
tree | 9dcc0f295d5ccc8e37b9416f0bb36c42afa6ea9d | |
parent | 9e6069cac80e851cc8af8ef3a3851289d4c92675 (diff) | |
download | manaplus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.tar.gz manaplus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.tar.bz2 manaplus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.tar.xz manaplus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.zip |
Const correct variable to hold __xmlParserVersion() value
-rw-r--r-- | src/unittests/utils/dumplibs.cc | 2 | ||||
-rw-r--r-- | 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 |