From 042bd0274733ed3c9bc352bf5eb109ef5287693a Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Thu, 21 Oct 2021 17:21:04 +0000 Subject: [PATCH] fuzzers: Fix build error: identifier 'writeonly__bindings' is reserved because it contains '__' [-Werror,-Wreserved-identifier] I see no reason for the local variables, so I've just removed them. Change-Id: Ib4047e12d5b55a204c56b06196052fef04def97d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67200 Auto-Submit: Ben Clayton Commit-Queue: Antonio Maiorano Kokoro: Kokoro Reviewed-by: Antonio Maiorano --- fuzzers/tint_common_fuzzer.cc | 41 ++++++++++++++--------------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/fuzzers/tint_common_fuzzer.cc b/fuzzers/tint_common_fuzzer.cc index 27c49e196e..7e6981501e 100644 --- a/fuzzers/tint_common_fuzzer.cc +++ b/fuzzers/tint_common_fuzzer.cc @@ -270,61 +270,52 @@ void CommonFuzzer::RunInspector(Program* program) { CHECK_INSPECTOR(inspector); for (auto& ep : entry_points) { - auto remapped_name = inspector.GetRemappedNameForEntryPoint(ep.name); + inspector.GetRemappedNameForEntryPoint(ep.name); CHECK_INSPECTOR(inspector); - auto storage_size = inspector.GetStorageSize(ep.name); - (void)storage_size; // Silencing unused variable warning + inspector.GetStorageSize(ep.name); CHECK_INSPECTOR(inspector); - auto resource_bindings = inspector.GetResourceBindings(ep.name); + inspector.GetResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto uniform_bindings = inspector.GetUniformBufferResourceBindings(ep.name); + inspector.GetUniformBufferResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto storage_bindings = inspector.GetStorageBufferResourceBindings(ep.name); + inspector.GetStorageBufferResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto readonly_bindings = - inspector.GetReadOnlyStorageBufferResourceBindings(ep.name); + inspector.GetReadOnlyStorageBufferResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto sampler_bindings = inspector.GetSamplerResourceBindings(ep.name); + inspector.GetSamplerResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto comparison_sampler_bindings = - inspector.GetComparisonSamplerResourceBindings(ep.name); + inspector.GetComparisonSamplerResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto sampled_texture_bindings = - inspector.GetSampledTextureResourceBindings(ep.name); + inspector.GetSampledTextureResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto multisampled_texture_bindings = - inspector.GetMultisampledTextureResourceBindings(ep.name); + inspector.GetMultisampledTextureResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto writeonly__bindings = - inspector.GetWriteOnlyStorageTextureResourceBindings(ep.name); + inspector.GetWriteOnlyStorageTextureResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto depth_bindings = inspector.GetDepthTextureResourceBindings(ep.name); + inspector.GetDepthTextureResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto depth_multisampled_bindings = - inspector.GetDepthMultisampledTextureResourceBindings(ep.name); + inspector.GetDepthMultisampledTextureResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto external_bindings = - inspector.GetExternalTextureResourceBindings(ep.name); + inspector.GetExternalTextureResourceBindings(ep.name); CHECK_INSPECTOR(inspector); - auto sampler_texture_uses = inspector.GetSamplerTextureUses(ep.name); + inspector.GetSamplerTextureUses(ep.name); CHECK_INSPECTOR(inspector); - auto workgroup_storage = inspector.GetWorkgroupStorageSize(ep.name); - (void)workgroup_storage; // Silencing unused variable warning + inspector.GetWorkgroupStorageSize(ep.name); CHECK_INSPECTOR(inspector); } }