From 8e15bdc9179213d403b540a879a1816699bde5e6 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Wed, 22 May 2024 09:18:22 -0400 Subject: Fix all Clang-14 warnings (#4203) * fix all Clang-14 warnings * remove a clang-14 warning fix because it is a MSVC warning... --- source/slang/slang-type-layout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-type-layout.cpp') diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp index 83901ecc4..bc7e4608f 100644 --- a/source/slang/slang-type-layout.cpp +++ b/source/slang/slang-type-layout.cpp @@ -4131,7 +4131,7 @@ static TypeLayoutResult _createTypeLayout( type, rules); } - else if (auto subpassType = as(type)) + else if (as(type)) { ShaderParameterKind kind = ShaderParameterKind::SubpassInput; return createSimpleTypeLayout( @@ -4139,7 +4139,7 @@ static TypeLayoutResult _createTypeLayout( type, rules); } - else if (auto atomicType = as(type)) + else if (as(type)) { ShaderParameterKind kind = ShaderParameterKind::AtomicUint; return createSimpleTypeLayout( -- cgit v1.2.3