summaryrefslogtreecommitdiffstats
path: root/mojo/public/tools
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/public/tools')
-rw-r--r--mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl4
-rw-r--r--mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
index 8b20615..de7469c 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
@@ -183,7 +183,7 @@ void {{proxy_name}}::{{method.name}}(
bool ok = receiver_->Accept(builder.message());
// This return value may be ignored as !ok implies the Connector has
// encountered an error, which will be visible through other means.
- MOJO_ALLOW_UNUSED_LOCAL(ok);
+ ALLOW_UNUSED_LOCAL(ok);
{%- endif %}
}
{%- endfor %}
@@ -242,7 +242,7 @@ void {{class_name}}_{{method.name}}_ProxyToResponder::Run(
{{build_message(response_params_struct, "in_%s", params_description,
"&serialization_context_")}}
bool ok = responder_->Accept(builder.message());
- MOJO_ALLOW_UNUSED_LOCAL(ok);
+ ALLOW_UNUSED_LOCAL(ok);
// TODO(darin): !ok returned here indicates a malformed message, and that may
// be good reason to close the connection. However, we don't have a way to do
// that from here. We should add a way.
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl
index 9e39e35..90d6152 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl
@@ -29,7 +29,7 @@ bool {{class_name}}::Validate(const void* data,
return false;
}
const {{class_name}}* object = static_cast<const {{class_name}}*>(data);
- MOJO_ALLOW_UNUSED_LOCAL(object);
+ ALLOW_UNUSED_LOCAL(object);
switch (object->tag) {
{% for field in union.fields %}