Skip to content

Commit cd1f10c

Browse files
committed
C++: Reinstate accidentally-deleted comment
1 parent a9b3c0d commit cd1f10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Best Practices/Unused Entities/UnusedLocals.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ where
5757
not declarationHasSideEffects(v) and
5858
not exists(AsmStmt s | f = s.getEnclosingFunction()) and
5959
not v.getAnAttribute().getName() = "unused" and
60-
not f.hasErrors()
60+
not f.hasErrors() // Unextracted expressions may use `v`
6161
select v, "Variable " + v.getName() + " is not used."

0 commit comments

Comments
 (0)