pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cppcheck cppcheck: fix build with gcc-11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5925cd9c1b10
branches:  trunk
changeset: 455706:5925cd9c1b10
user:      markd <markd%pkgsrc.org@localhost>
date:      Fri Jul 09 10:50:37 2021 +0000

description:
cppcheck: fix build with gcc-11

diffstat:

 devel/cppcheck/distinfo                                  |   5 ++++-
 devel/cppcheck/patches/patch-lib_programmemory.cpp       |  14 ++++++++++++++
 devel/cppcheck/patches/patch-lib_symboldatabase.cpp      |  14 ++++++++++++++
 devel/cppcheck/patches/patch-test_testsymboldatabase.cpp |  14 ++++++++++++++
 4 files changed, 46 insertions(+), 1 deletions(-)

diffs (68 lines):

diff -r 79a8d70a5db9 -r 5925cd9c1b10 devel/cppcheck/distinfo
--- a/devel/cppcheck/distinfo   Fri Jul 09 10:36:23 2021 +0000
+++ b/devel/cppcheck/distinfo   Fri Jul 09 10:50:37 2021 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.16 2020/06/29 13:06:51 wiz Exp $
+$NetBSD: distinfo,v 1.17 2021/07/09 10:50:37 markd Exp $
 
 SHA1 (cppcheck-2.1.tar.bz2) = 3cf4c1bc20d25f8876fdc78cdb19586561dda470
 RMD160 (cppcheck-2.1.tar.bz2) = b35d3e49ab0b833f7a7a5e6dba796702975c8866
 SHA512 (cppcheck-2.1.tar.bz2) = ddf10ea394fc7e862fefb4380e5aa4cdece4d9b135dc959c6e37c6dbdd85c77c4e3f4eac3af1b51415543eb16d3e225694963658530241250835586983dba4ae
 Size (cppcheck-2.1.tar.bz2) = 2480943 bytes
+SHA1 (patch-lib_programmemory.cpp) = 8ff73bfbfc6227697a7c0c06f4ad72b5aff54e24
+SHA1 (patch-lib_symboldatabase.cpp) = fc25ee06f9c0388214547b762c1b24740e4a4bb5
+SHA1 (patch-test_testsymboldatabase.cpp) = 3fbd081cba3ad3d0f0e41df0c78f41d92ba5da77
diff -r 79a8d70a5db9 -r 5925cd9c1b10 devel/cppcheck/patches/patch-lib_programmemory.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cppcheck/patches/patch-lib_programmemory.cpp        Fri Jul 09 10:50:37 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_programmemory.cpp,v 1.1 2021/07/09 10:50:37 markd Exp $
+
+gcc11 build fix
+
+--- lib/programmemory.cpp.orig 2020-06-13 16:08:37.000000000 +0000
++++ lib/programmemory.cpp
+@@ -5,6 +5,7 @@
+ #include "symboldatabase.h"
+ #include <algorithm>
+ #include <cassert>
++#include <limits>
+ 
+ void ProgramMemory::setValue(nonneg int varid, const ValueFlow::Value &value)
+ {
diff -r 79a8d70a5db9 -r 5925cd9c1b10 devel/cppcheck/patches/patch-lib_symboldatabase.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cppcheck/patches/patch-lib_symboldatabase.cpp       Fri Jul 09 10:50:37 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_symboldatabase.cpp,v 1.1 2021/07/09 10:50:37 markd Exp $
+
+gcc11 build fix
+
+--- lib/symboldatabase.cpp.orig        2020-06-13 16:08:37.000000000 +0000
++++ lib/symboldatabase.cpp
+@@ -32,6 +32,7 @@
+ #include <algorithm>
+ #include <cassert>
+ #include <climits>
++#include <limits>
+ #include <iomanip>
+ #include <iostream>
+ //---------------------------------------------------------------------------
diff -r 79a8d70a5db9 -r 5925cd9c1b10 devel/cppcheck/patches/patch-test_testsymboldatabase.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp  Fri Jul 09 10:50:37 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-test_testsymboldatabase.cpp,v 1.1 2021/07/09 10:50:37 markd Exp $
+
+gcc11 build fix
+
+--- test/testsymboldatabase.cpp.orig   2020-06-13 16:08:37.000000000 +0000
++++ test/testsymboldatabase.cpp
+@@ -31,6 +31,7 @@
+ #include <cstddef>
+ #include <cstdint>
+ #include <cstring>
++#include <limits>
+ #include <list>
+ #include <map>
+ #include <set>



Home | Main Index | Thread Index | Old Index