summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-layout.cpp
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-05-22 09:18:22 -0400
committerGitHub <noreply@github.com>2024-05-22 06:18:22 -0700
commit8e15bdc9179213d403b540a879a1816699bde5e6 (patch)
treeee986632900f4ca7c65065f6866cb51d2544105f /source/slang/slang-type-layout.cpp
parent52b5bb43fd2933a30b405e7938ff62b209eea026 (diff)
Fix all Clang-14 warnings (#4203)
* fix all Clang-14 warnings * remove a clang-14 warning fix because it is a MSVC warning...
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
-rw-r--r--source/slang/slang-type-layout.cpp4
1 files changed, 2 insertions, 2 deletions
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<SubpassInputType>(type))
+ else if (as<SubpassInputType>(type))
{
ShaderParameterKind kind = ShaderParameterKind::SubpassInput;
return createSimpleTypeLayout(
@@ -4139,7 +4139,7 @@ static TypeLayoutResult _createTypeLayout(
type,
rules);
}
- else if (auto atomicType = as<GLSLAtomicUintType>(type))
+ else if (as<GLSLAtomicUintType>(type))
{
ShaderParameterKind kind = ShaderParameterKind::AtomicUint;
return createSimpleTypeLayout(