Fix missing #include for gcc-11
This commit is contained in:
parent
7148cf7978
commit
755aeefb31
24
cppcheck-gcc11.patch
Normal file
24
cppcheck-gcc11.patch
Normal file
@ -0,0 +1,24 @@
|
||||
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;
|
||||
|
@ -19,6 +19,8 @@ Patch3: cppcheck-2.2-exprengine.patch
|
||||
# Look for Qt online-help file also in FILESDIR
|
||||
# https://github.com/danmar/cppcheck/commit/df9f6f3
|
||||
Patch4: cppcheck-2.2-online-help.patch
|
||||
# Fix for missing #include with gcc-11
|
||||
Patch5: cppcheck-gcc11.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pcre-devel
|
||||
@ -66,6 +68,7 @@ from xml files first generated using cppcheck.
|
||||
%patch2 -p1 -b .python3
|
||||
%patch3 -p1 -b .exprengine
|
||||
%patch4 -p1 -b .online-help
|
||||
%patch5 -p1 -b .gcc11
|
||||
# Make sure bundled tinyxml is not used
|
||||
rm -r externals/tinyxml
|
||||
# Generate the Qt online-help file
|
||||
|
Loading…
Reference in New Issue
Block a user