Chromium Code Reviews| Index: tools/gn/functions_target.cc |
| diff --git a/tools/gn/functions_target.cc b/tools/gn/functions_target.cc |
| index 7e952f19ee87d8564ab5d6905c6cf0005af9f824..8aea0128ad85e2312765fc0d25d5d5103555a935 100644 |
| --- a/tools/gn/functions_target.cc |
| +++ b/tools/gn/functions_target.cc |
| @@ -292,6 +292,8 @@ Value RunComponent(Scope* scope, |
| TargetGenerator::GenerateTarget(&block_scope, function, args, |
| component_mode, err); |
| + |
| + block_scope.CheckForUnusedVars(err); |
| return Value(); |
| } |