summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-08-16 13:27:00 +0800
committerGitHub <noreply@github.com>2023-08-15 22:27:00 -0700
commit00e2bf1cd3e30cd6560222f620b7f66fa55c1549 (patch)
treedbb6270062bba6f0cbb9355438c822e3c97ff2f9 /source/slang/slang-check-decl.cpp
parent9ec30a1d5ac99ec08f83ad262156a671c35a287d (diff)
squash warnings (#3113)
* Remove unused variables * Silence gcc out of bounds warnings * Squash strict-aliasing warnings It is still a naughty thing to be casting to T like this though * Correct equality check when val is nullptr --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 8c9ca2936..cb3db9e39 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -1335,7 +1335,7 @@ namespace Slang
auto newDeclRef = createDefaultSubstitutionsIfNeeded(m_astBuilder, this, declRefType->getDeclRef());
auto newType = DeclRefType::create(m_astBuilder, newDeclRef);
sharedTypeExpr->base.type = newType;
- if (auto typetype = as<TypeType>(typeExp.exp->type))
+ if (as<TypeType>(typeExp.exp->type))
typeExp.exp->type = m_astBuilder->getTypeType(newType);
}
}