Skip to content

Commit

Permalink
Update checkautovariables.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jan 15, 2025
1 parent 5c14c52 commit 0566298
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/checkautovariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ void CheckAutoVariables::checkVarLifetimeScope(const Token * start, const Token
if (var && !var->isLocal() && !var->isArgument() && !(val.tokvalue && val.tokvalue->variable() && val.tokvalue->variable()->isStatic()) &&
!isVariableChanged(nextTok,
tok->scope()->bodyEnd,
var->valueType() ? var->valueType()->pointer : 0,
var->declarationId(),
var->isGlobal(),
*mSettings)) {
Expand Down

0 comments on commit 0566298

Please sign in to comment.