From 555696ddd0e00e521bd16fb868f5656fedcbf5a6 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 2 Dec 2020 15:51:38 +0000 Subject: [PATCH] Remove unused variables. This fixes the build when using gcc. Change-Id: I98b9afcf0b40b692e46f92dc4b71583e41877281 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34681 Auto-Submit: dan sinclair Commit-Queue: Ben Clayton Reviewed-by: Ben Clayton --- src/writer/hlsl/generator_impl.cc | 2 +- src/writer/msl/generator_impl.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/writer/hlsl/generator_impl.cc b/src/writer/hlsl/generator_impl.cc index 2b66d3fd84..dc91175193 100644 --- a/src/writer/hlsl/generator_impl.cc +++ b/src/writer/hlsl/generator_impl.cc @@ -1977,7 +1977,7 @@ bool GeneratorImpl::EmitStatement(std::ostream& out, ast::Statement* stmt) { if (auto* d = stmt->As()) { return EmitDiscard(out, d); } - if (auto* f = stmt->As()) { + if (stmt->As()) { make_indent(out); out << "/* fallthrough */" << std::endl; return true; diff --git a/src/writer/msl/generator_impl.cc b/src/writer/msl/generator_impl.cc index 1161be78d0..6fa0c6a06e 100644 --- a/src/writer/msl/generator_impl.cc +++ b/src/writer/msl/generator_impl.cc @@ -1736,7 +1736,7 @@ bool GeneratorImpl::EmitStatement(ast::Statement* stmt) { if (auto* d = stmt->As()) { return EmitDiscard(d); } - if (auto* f = stmt->As()) { + if (stmt->As()) { make_indent(); out_ << "/* fallthrough */" << std::endl; return true;