File: 04-Fix-pointer-type-in-dumplibs.cpp.diff

package info (click to toggle)
manaplus 2.1.3.17-8.1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 82,208 kB
  • sloc: cpp: 249,446; xml: 7,909; sh: 4,740; pascal: 4,275; makefile: 3,254; ansic: 1,095; objc: 244; sed: 16
file content (44 lines) | stat: -rw-r--r-- 1,419 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 874dae6920c650cd6702408c2f61a2e19dc96c43 Mon Sep 17 00:00:00 2001
From: akaras <akaras@inbox.ru>
Date: Tue, 25 Jun 2024 17:57:10 +0300
Subject: [PATCH 2/3] Fix pointer type in dumplibs.cpp

---
 src/utils/dumplibs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp
index 4215d6183..752d1295b 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
-- 
2.45.2

 src/unittests/utils/dumplibs.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unittests/utils/dumplibs.cc b/src/unittests/utils/dumplibs.cc
index 47866d4c5..8c1d3bb14 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) ==
-- 
2.45.2