We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b3c0d commit cd1f10cCopy full SHA for cd1f10c
cpp/ql/src/Best Practices/Unused Entities/UnusedLocals.ql
@@ -57,5 +57,5 @@ where
57
not declarationHasSideEffects(v) and
58
not exists(AsmStmt s | f = s.getEnclosingFunction()) and
59
not v.getAnAttribute().getName() = "unused" and
60
- not f.hasErrors()
+ not f.hasErrors() // Unextracted expressions may use `v`
61
select v, "Variable " + v.getName() + " is not used."
0 commit comments