Fix GCC warning about an unused local variable

Change-Id: Idd064713ce8919e96f84a8a13fa04779fa889208
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44871
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton 2021-03-17 14:00:44 +00:00 committed by Commit Bot service account
parent d600972e49
commit 417b82291b
1 changed files with 1 additions and 1 deletions

View File

@ -2594,7 +2594,7 @@ bool GeneratorImpl::EmitStructType(std::ostream& out,
return false; return false;
} }
out << " : " << attr; out << " : " << attr;
} else if (auto* offset = deco->As<ast::StructMemberOffsetDecoration>()) { } else if (deco->Is<ast::StructMemberOffsetDecoration>()) {
// Nothing to do, offsets are handled at the point of access. // Nothing to do, offsets are handled at the point of access.
} else { } else {
diagnostics_.add_error("unsupported struct member decoration"); diagnostics_.add_error("unsupported struct member decoration");