Index: tools/gn/function_template.cc |
diff --git a/tools/gn/function_template.cc b/tools/gn/function_template.cc |
index 66c6801d2b024def8e982629339a48a77ad72cb0..fd6fb4a132ecdd592eebb6a189f4bce4179b6347 100644 |
--- a/tools/gn/function_template.cc |
+++ b/tools/gn/function_template.cc |
@@ -205,7 +205,7 @@ Value RunTemplate(Scope* scope, |
// incremental value of unused variable checking isn't worth the |
// alternatives. So all values in scope before this template definition are |
// exempted from unused variable checking. |
- scope->MarkAllUsed(); |
+ scope->MarkAllUsed(err); |
return Value(); |
} |