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 <pkasting@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Peter Kasting 2021-10-20 19:33:53 +00:00 committed by Tint LUCI CQ
parent 7103f51603
commit 0da0c95dc3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}