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:
parent
7103f51603
commit
0da0c95dc3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue