diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-08-16 13:27:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 22:27:00 -0700 |
| commit | 00e2bf1cd3e30cd6560222f620b7f66fa55c1549 (patch) | |
| tree | dbb6270062bba6f0cbb9355438c822e3c97ff2f9 /source/slang/slang-check-decl.cpp | |
| parent | 9ec30a1d5ac99ec08f83ad262156a671c35a287d (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.cpp | 2 |
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); } } |
