From 65fcacf683a23092279cebf23aa50aa2f4034017 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 31 Mar 2025 17:16:00 -0700 Subject: [PATCH] [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. --- naga/tests/validation.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/naga/tests/validation.rs b/naga/tests/validation.rs index 9c1b45394..9f70288e5 100644 --- a/naga/tests/validation.rs +++ b/naga/tests/validation.rs @@ -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, }