cppcheck/cppcheck-gcc11.patch
Petr Šabata d0631657f4 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/cppcheck#3b49bcefb22fff8012dc040e6fdfb7050de7e2d7
2020-10-14 23:15:06 +02:00

25 lines
618 B
Diff

diff --git a/lib/programmemory.cpp b/lib/programmemory.cpp
index 6b0e2d8..785c9cf 100644
--- a/lib/programmemory.cpp
+++ b/lib/programmemory.cpp
@@ -6,6 +6,7 @@
#include <algorithm>
#include <cassert>
#include <memory>
+#include <limits>
void ProgramMemory::setValue(nonneg int varid, const ValueFlow::Value &value)
{
diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp
index 4d378d5..ced44ab 100644
--- a/test/testsymboldatabase.cpp
+++ b/test/testsymboldatabase.cpp
@@ -38,6 +38,7 @@
#include <stdexcept>
#include <string>
#include <vector>
+#include <limits>
struct InternalError;