From ac160444ba4b800b53c18ebb4559aeb8c9c89c26 Mon Sep 17 00:00:00 2001 From: Sylvester Hesp Date: Mon, 29 Aug 2022 21:01:27 +0200 Subject: [PATCH] Silenced dead code warning Little unsure about this though, scary that it pops up all of a sudden while obviously being used by the functions below. --- crates/spirv-std/src/arch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/spirv-std/src/arch.rs b/crates/spirv-std/src/arch.rs index 60fe0a563a..5c3e4318db 100644 --- a/crates/spirv-std/src/arch.rs +++ b/crates/spirv-std/src/arch.rs @@ -188,6 +188,7 @@ pub unsafe fn read_clock_uvec2_khr, const SCOPE: u32>() -> V { } #[spirv_std_macros::gpu_only] +#[allow(dead_code)] unsafe fn call_glsl_op_with_ints(a: T, b: T) -> T { let mut result = T::default(); asm!(