C++: Reinstate accidentally-deleted comment

This commit is contained in:
Calum Grant
2024-10-01 16:15:24 +01:00
parent a9b3c0d91b
commit cd1f10cdea

View File

@@ -57,5 +57,5 @@ where
not declarationHasSideEffects(v) and
not exists(AsmStmt s | f = s.getEnclosingFunction()) and
not v.getAnAttribute().getName() = "unused" and
not f.hasErrors()
not f.hasErrors() // Unextracted expressions may use `v`
select v, "Variable " + v.getName() + " is not used."