From 0da0c95dc30c21e8cc07a30e452e67e7b490eea4 Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Wed, 20 Oct 2021 19:33:53 +0000 Subject: [PATCH] Silence -Wunused-but-set-variable in new code. Bug: chromium:1203071 Change-Id: Id94bf93784f939c212c8da2be4755160cfb9f8e0 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67081 Auto-Submit: Peter Kasting Commit-Queue: Ryan Harrison Kokoro: Kokoro Reviewed-by: Ryan Harrison --- fuzzers/tint_common_fuzzer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzzers/tint_common_fuzzer.cc b/fuzzers/tint_common_fuzzer.cc index d2100dbe46..27c49e196e 100644 --- a/fuzzers/tint_common_fuzzer.cc +++ b/fuzzers/tint_common_fuzzer.cc @@ -274,7 +274,7 @@ void CommonFuzzer::RunInspector(Program* program) { CHECK_INSPECTOR(inspector); auto storage_size = inspector.GetStorageSize(ep.name); - storage_size = 0; // Silencing unused variable warning + (void)storage_size; // Silencing unused variable warning CHECK_INSPECTOR(inspector); auto resource_bindings = inspector.GetResourceBindings(ep.name); @@ -324,7 +324,7 @@ void CommonFuzzer::RunInspector(Program* program) { CHECK_INSPECTOR(inspector); auto workgroup_storage = inspector.GetWorkgroupStorageSize(ep.name); - workgroup_storage = 0; // Silencing unused variable warning + (void)workgroup_storage; // Silencing unused variable warning CHECK_INSPECTOR(inspector); } }