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 - echo $CXXFLAGS
- make -s test -j2 CPPFLAGS=-DTEST_MATHLIB_VALUE - make -s test -j2 CPPFLAGS=-DTEST_MATHLIB_VALUE
- touch lib/mathlib.cpp test/testmathlib.cpp - touch lib/mathlib.cpp test/testmathlib.cpp
# compile cppcheck with -DNONNEG # syntax checking of cppcheck source code with -DNONNEG
- echo $CXXFLAGS - g++ -fsyntax-only -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml -DNONNEG lib/*.cpp cli/*.cpp
- make -s CPPFLAGS=-DNONNEG -j2
- make clean
# compile cppcheck, default build # compile cppcheck, default build
- echo $CXXFLAGS - echo $CXXFLAGS
- make -s test -j2 - make -s test -j2

View File

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