From a4ba7d63e3035895b8081387b49a52b0fda53424 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Sat, 2 Mar 2024 04:43:26 +0800 Subject: warnings (#3653) * Remove unused code * unused variable warnings * unused variable --------- Co-authored-by: Yong He --- source/slang/slang-emit-spirv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-emit-spirv.cpp') diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index d81ceae81..dd417e38f 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -5088,7 +5088,7 @@ struct SPIRVEmitContext return ensureInst(m_voidType); IRBuilder builder(type); - if (auto funcType = as(type)) + if (const auto funcType = as(type)) { List argTypes; return emitOpDebugTypeFunction( -- cgit v1.2.3