Travis: Fix one more 'nonneg' issue

This commit is contained in:
Daniel Marjamäki 2019-07-14 22:49:37 +02:00
parent 593733f522
commit aeefaf7004
2 changed files with 3 additions and 5 deletions

View File

@ -208,10 +208,8 @@ script:
- echo $CXXFLAGS
- make -s test -j2 CPPFLAGS=-DTEST_MATHLIB_VALUE
- touch lib/mathlib.cpp test/testmathlib.cpp
# compile cppcheck with -DNONNEG
- echo $CXXFLAGS
- make -s CPPFLAGS=-DNONNEG -j2
- make clean
# syntax checking of cppcheck source code with -DNONNEG
- g++ -fsyntax-only -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml -DNONNEG lib/*.cpp cli/*.cpp
# compile cppcheck, default build
- echo $CXXFLAGS
- make -s test -j2

View File

@ -7221,7 +7221,7 @@ bool Tokenizer::simplifyKnownVariables()
const Token * const valueToken = tok2->tokAt(2);
std::string value;
int valueVarId = 0;
nonneg int valueVarId = 0;
Token *tok3 = nullptr;
bool valueIsPointer = false;