Fri Jul 9 10:50:38 2021 UTC ()
cppcheck: fix build with gcc-11


(markd)
diff -r1.16 -r1.17 pkgsrc/devel/cppcheck/distinfo
diff -r0 -r1.1 pkgsrc/devel/cppcheck/patches/patch-lib_programmemory.cpp
diff -r0 -r1.1 pkgsrc/devel/cppcheck/patches/patch-lib_symboldatabase.cpp
diff -r0 -r1.1 pkgsrc/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp

cvs diff -r1.16 -r1.17 pkgsrc/devel/cppcheck/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/cppcheck/distinfo 2020/06/29 13:06:51 1.16
+++ pkgsrc/devel/cppcheck/distinfo 2021/07/09 10:50:37 1.17
@@ -1,6 +1,9 @@ @@ -1,6 +1,9 @@
1$NetBSD: distinfo,v 1.16 2020/06/29 13:06:51 wiz Exp $ 1$NetBSD: distinfo,v 1.17 2021/07/09 10:50:37 markd Exp $
2 2
3SHA1 (cppcheck-2.1.tar.bz2) = 3cf4c1bc20d25f8876fdc78cdb19586561dda470 3SHA1 (cppcheck-2.1.tar.bz2) = 3cf4c1bc20d25f8876fdc78cdb19586561dda470
4RMD160 (cppcheck-2.1.tar.bz2) = b35d3e49ab0b833f7a7a5e6dba796702975c8866 4RMD160 (cppcheck-2.1.tar.bz2) = b35d3e49ab0b833f7a7a5e6dba796702975c8866
5SHA512 (cppcheck-2.1.tar.bz2) = ddf10ea394fc7e862fefb4380e5aa4cdece4d9b135dc959c6e37c6dbdd85c77c4e3f4eac3af1b51415543eb16d3e225694963658530241250835586983dba4ae 5SHA512 (cppcheck-2.1.tar.bz2) = ddf10ea394fc7e862fefb4380e5aa4cdece4d9b135dc959c6e37c6dbdd85c77c4e3f4eac3af1b51415543eb16d3e225694963658530241250835586983dba4ae
6Size (cppcheck-2.1.tar.bz2) = 2480943 bytes 6Size (cppcheck-2.1.tar.bz2) = 2480943 bytes
 7SHA1 (patch-lib_programmemory.cpp) = 8ff73bfbfc6227697a7c0c06f4ad72b5aff54e24
 8SHA1 (patch-lib_symboldatabase.cpp) = fc25ee06f9c0388214547b762c1b24740e4a4bb5
 9SHA1 (patch-test_testsymboldatabase.cpp) = 3fbd081cba3ad3d0f0e41df0c78f41d92ba5da77

File Added: pkgsrc/devel/cppcheck/patches/Attic/patch-lib_programmemory.cpp
$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)
 {

File Added: pkgsrc/devel/cppcheck/patches/Attic/patch-lib_symboldatabase.cpp
$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>
 //---------------------------------------------------------------------------

File Added: pkgsrc/devel/cppcheck/patches/Attic/patch-test_testsymboldatabase.cpp
$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>