[webgpu] fix a build warning in latest GCC (#24944)
### Description
<!-- Describe your changes. -->
Try to fix #24941
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>