diff options
author | markd <markd@pkgsrc.org> | 2021-07-09 10:50:37 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2021-07-09 10:50:37 +0000 |
commit | b6bd1d2481b532915e40ac9c4d8ffb9ca530f3e5 (patch) | |
tree | c43d0631457bec5aaae44e86d0b00c2d6694b6b4 /devel | |
parent | bdd8d5a514d8b49072fb583e93620893c6f3ffa3 (diff) | |
download | pkgsrc-b6bd1d2481b532915e40ac9c4d8ffb9ca530f3e5.tar.gz |
cppcheck: fix build with gcc-11
Diffstat (limited to 'devel')
-rw-r--r-- | devel/cppcheck/distinfo | 5 | ||||
-rw-r--r-- | devel/cppcheck/patches/patch-lib_programmemory.cpp | 14 | ||||
-rw-r--r-- | devel/cppcheck/patches/patch-lib_symboldatabase.cpp | 14 | ||||
-rw-r--r-- | devel/cppcheck/patches/patch-test_testsymboldatabase.cpp | 14 |
4 files changed, 46 insertions, 1 deletions
diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo index 88a3834e5f7..bb752c42b22 100644 --- a/devel/cppcheck/distinfo +++ b/devel/cppcheck/distinfo @@ -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 --git a/devel/cppcheck/patches/patch-lib_programmemory.cpp b/devel/cppcheck/patches/patch-lib_programmemory.cpp new file mode 100644 index 00000000000..8a31737c52e --- /dev/null +++ b/devel/cppcheck/patches/patch-lib_programmemory.cpp @@ -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 --git a/devel/cppcheck/patches/patch-lib_symboldatabase.cpp b/devel/cppcheck/patches/patch-lib_symboldatabase.cpp new file mode 100644 index 00000000000..3de4af7ab6b --- /dev/null +++ b/devel/cppcheck/patches/patch-lib_symboldatabase.cpp @@ -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 --git a/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp b/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp new file mode 100644 index 00000000000..164bef78747 --- /dev/null +++ b/devel/cppcheck/patches/patch-test_testsymboldatabase.cpp @@ -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> |