summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.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-syntax.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-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index b7e9af43a..1f96df2f0 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -411,7 +411,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
ASTBuilder* astBuilder,
DeclRef<Decl> declRef)
{
- if (auto builtinMod = declRef.getDecl()->findModifier<BuiltinTypeModifier>())
+ if (declRef.getDecl()->findModifier<BuiltinTypeModifier>())
{
// Always create builtin types in global AST builder.
if (astBuilder->getSharedASTBuilder()->getInnerASTBuilder() != astBuilder)