[naga tests] Silence dead code warning. (#7457)

Silence warnings about `DummyInterpolationShader::entry_point` being
unused in test builds with `wgsl-in` feature but without the
`glsl-out` feature.
This commit is contained in:
Jim Blandy 2025-03-31 17:16:00 -07:00 committed by GitHub
parent 3d7ae9dc92
commit 65fcacf683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -472,6 +472,7 @@ mod dummy_interpolation_shader {
pub source: String,
pub module: naga::Module,
pub interpolate_attr: String,
#[cfg_attr(not(feature = "glsl-out"), expect(dead_code))]
pub entry_point: &'static str,
}