Skip to content

Commit 365c47d

Browse files
committed
clang-tidy
1 parent 6aafa3e commit 365c47d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ void CheckOther::warningDangerousTypeCast()
438438

439439
void CheckOther::dangerousTypeCastError(const Token *tok, bool isPtr)
440440
{
441-
const std::string type = isPtr ? "pointer" : "reference";
441+
//const std::string type = isPtr ? "pointer" : "reference";
442+
(void)isPtr;
442443
reportError(tok, Severity::warning, "dangerousTypeCast",
443444
"Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast",
444445
CWE398, Certainty::normal);

0 commit comments

Comments
 (0)