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-ast-type.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-ast-type.cpp')
| -rw-r--r-- | source/slang/slang-ast-type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp index 6d4a52cae..9704b4c87 100644 --- a/source/slang/slang-ast-type.cpp +++ b/source/slang/slang-ast-type.cpp @@ -103,7 +103,7 @@ Val* DeclRefType::_substituteImplOverride(ASTBuilder* astBuilder, SubstitutionSe // if (as<DirectDeclRef>(substDeclRef.declRefBase)) { - if (auto thisDecl = as<ThisTypeDecl>(substDeclRef.getDecl())) + if (as<ThisTypeDecl>(substDeclRef.getDecl())) { auto lookupDeclRef = subst.findLookupDeclRef(); if (lookupDeclRef && lookupDeclRef->getSupDecl() == substDeclRef.getDecl()->parentDecl) |
