Fix some compiler warnings
This commit is contained in:
parent
036b2f8ccf
commit
b6a40fceb7
|
@ -417,9 +417,6 @@ private:
|
|||
return (eraseToken == c->eraseToken);
|
||||
}
|
||||
|
||||
/** @brief no implementation => compiler error if used by accident */
|
||||
void operator=(const EraseCheckLoop &);
|
||||
|
||||
/** @brief parse tokens */
|
||||
const Token *parse(const Token &tok, std::list<ExecutionPath *> &checks) const {
|
||||
// bail out if there are assignments. We don't check the assignments properly.
|
||||
|
|
|
@ -65,9 +65,6 @@ private:
|
|||
return new UninitVar(*this);
|
||||
}
|
||||
|
||||
/** no implementation => compiler error if used */
|
||||
void operator=(const UninitVar &);
|
||||
|
||||
/** internal constructor for creating extra checks */
|
||||
UninitVar(Check *c, const Variable* v, const SymbolDatabase* db, const Library *lib, bool isc)
|
||||
: ExecutionPath(c, v->declarationId()), symbolDatabase(db), library(lib), isC(isc), var(v), alloc(false), strncpy_(false), memset_nonzero(false) {
|
||||
|
|
|
@ -319,9 +319,9 @@ private:
|
|||
}
|
||||
|
||||
void matchNothingOrAnyNotElse() const {
|
||||
givenACodeSampleToTokenize emptyString("", true);
|
||||
ASSERT_EQUALS(true, Token::Match(emptyString.tokens(), "!!else"));
|
||||
ASSERT_EQUALS(false, Token::Match(emptyString.tokens(), "!!else something"));
|
||||
givenACodeSampleToTokenize empty_String("", true);
|
||||
ASSERT_EQUALS(true, Token::Match(empty_String.tokens(), "!!else"));
|
||||
ASSERT_EQUALS(false, Token::Match(empty_String.tokens(), "!!else something"));
|
||||
|
||||
givenACodeSampleToTokenize ifSemicolon("if ;", true);
|
||||
ASSERT_EQUALS(true, Token::Match(ifSemicolon.tokens(), "if ; !!else"));
|
||||
|
|
Loading…
Reference in New Issue