[BACK]Return to patch-lib_programmemory.cpp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / cppcheck / patches

File: [cvs.NetBSD.org] / pkgsrc / devel / cppcheck / patches / Attic / patch-lib_programmemory.cpp (download)

Revision 1.1, Fri Jul 9 10:50:37 2021 UTC (14 months, 3 weeks ago) by markd
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3

cppcheck: fix build with gcc-11

$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)
 {