Validator: Fix GCC unused variable warning / error
Change-Id: I36e1a86328249abccfde4e6b7712d6e2a9d32c7b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/45286 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
9970ec63ca
commit
c98dedf57a
|
@ -71,7 +71,7 @@ bool ValidatorImpl::Validate() {
|
|||
|
||||
// Validate global declarations in the order they appear in the module.
|
||||
for (auto* decl : program_->AST().GlobalDeclarations()) {
|
||||
if (auto* ty = decl->As<type::Type>()) {
|
||||
if (decl->Is<type::Type>()) {
|
||||
// Validated by Resolver (Struct types only)
|
||||
return true;
|
||||
} else if (auto* func = decl->As<ast::Function>()) {
|
||||
|
|
Loading…
Reference in New Issue