Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: tools/gn/function_template.cc

Issue 2936923002: Add not_needed function (Closed)
Patch Set: Rename to not_needed Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698