Skip to content

Commit 8d68288

Browse files
kloczekYour Name
andauthored
Another gcc11 fix (#3179)
/home/tkloczko/rpmbuild/BUILD/cppcheck-2.4/lib/symboldatabase.cpp: In member function ‘void SymbolDatabase::createSymbolDatabaseExprIds()’: /home/tkloczko/rpmbuild/BUILD/cppcheck-2.4/lib/symboldatabase.cpp:1443:32: error: ‘numeric_limits’ is not a member of ‘std’ 1443 | if (id == std::numeric_limits<nonneg int>::max()) { | ^~~~~~~~~~~~~~ /home/tkloczko/rpmbuild/BUILD/cppcheck-2.4/lib/symboldatabase.cpp:1443:54: error: expected primary-expression before ‘int’ 1443 | if (id == std::numeric_limits<nonneg int>::max()) { | ^~~ /home/tkloczko/rpmbuild/BUILD/cppcheck-2.4/lib/symboldatabase.cpp:1443:47: error: expected ‘)’ before ‘int’ 1443 | if (id == std::numeric_limits<nonneg int>::max()) { | ~ ^ ~~~ | ) This patch adds missing `include #include <limits>` Co-authored-by: Your Name <you@example.com>
1 parent 99e2f49 commit 8d68288

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <cassert>
3636
#include <climits>
3737
#include <cstring>
38+
#include <limits>
3839
#include <iomanip>
3940
#include <iostream>
4041
#include <unordered_map>

0 commit comments

Comments
 (0)