unhandled char literal; changed severity to 'portability'. hopefully there will not be warnings for standard character literals.
This commit is contained in:
parent
fca7a270bf
commit
7ba9e37296
|
@ -2767,7 +2767,7 @@ bool Tokenizer::simplifyTokens1(const std::string &configuration)
|
|||
}
|
||||
|
||||
// Warn about unhandled character literals
|
||||
if (mSettings->severity.isEnabled(Severity::debug) || mSettings->daca) {
|
||||
if (mSettings->severity.isEnabled(Severity::portability)) {
|
||||
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
||||
if (tok->tokType() == Token::eChar && tok->values().empty()) {
|
||||
try {
|
||||
|
@ -9551,9 +9551,9 @@ void Tokenizer::unhandledCharLiteral(const Token *tok, const std::string& msg) c
|
|||
}
|
||||
|
||||
reportError(tok,
|
||||
Severity::debug,
|
||||
"debugUnhandledChar",
|
||||
"Character literal" + s + " is not handled. " + msg);
|
||||
Severity::portability,
|
||||
"nonStandardCharLiteral",
|
||||
"Non-standard character literal" + s + ". " + msg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue