mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
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:
committed by
Commit Bot service account
parent
d600972e49
commit
417b82291b
@@ -2594,7 +2594,7 @@ bool GeneratorImpl::EmitStructType(std::ostream& out,
|
||||
return false;
|
||||
}
|
||||
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.
|
||||
} else {
|
||||
diagnostics_.add_error("unsupported struct member decoration");
|
||||
|
||||
Reference in New Issue
Block a user