From 0e62886ed327e13d5e350c6c6308850dd7d44604 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sat, 6 Feb 2016 12:35:50 +0100 Subject: [PATCH] Add some #[allow(dead_code)] --- vulkano-shaders/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vulkano-shaders/src/lib.rs b/vulkano-shaders/src/lib.rs index a0479547..f45591e7 100644 --- a/vulkano-shaders/src/lib.rs +++ b/vulkano-shaders/src/lib.rs @@ -61,6 +61,7 @@ impl {name} {{ }} /// Returns the module that was created. + #[allow(dead_code)] #[inline] pub fn module(&self) -> &::std::sync::Arc<::vulkano::shader::ShaderModule> {{ &self.shader @@ -185,6 +186,7 @@ fn write_entry_point(doc: &parse::Spirv, instruction: &parse::Instruction) -> St #[inline] pub fn {ep_name}_entry_point(&self) -> {ty} {{ unsafe {{ + #[allow(dead_code)] static NAME: [u8; {ep_name_lenp1}] = [{encoded_ep_name}, 0]; self.shader.{f_name}(::std::ffi::CStr::from_ptr(NAME.as_ptr() as *const _)) }}