================
@@ -4052,11 +4094,15 @@ void Sema::ActOnDeferStmtError([[maybe_unused]] Scope
*CurScope) {
CurrentDefer.pop_back();
}
-StmtResult Sema::ActOnEndOfDeferStmt(Stmt *Body,
- [[maybe_unused]] Scope *CurScope) {
+StmtResult Sema::ActOnEndOfDeferStmt(Stmt *Body, Scope *CurScope) {
----------------
Sirraide wrote:
Don’t remove the `[[maybe_unused]]`. It’s there because `CurScope` is only used
in the `assert()`, so you’d get an unused parameter warning w/o it if
assertions are disabled
https://github.com/llvm/llvm-project/pull/225748
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits