[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 authored and GitHub committed 2025-03-31 20:16:00 -04:00
1 parent 3d7ae9dc92
commit 65fcacf683
1 file changed
+1
+1
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,
}