From 00e2bf1cd3e30cd6560222f620b7f66fa55c1549 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 16 Aug 2023 13:27:00 +0800 Subject: 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 --- source/slang/slang-ast-type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ast-type.cpp') 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(substDeclRef.declRefBase)) { - if (auto thisDecl = as(substDeclRef.getDecl())) + if (as(substDeclRef.getDecl())) { auto lookupDeclRef = subst.findLookupDeclRef(); if (lookupDeclRef && lookupDeclRef->getSupDecl() == substDeclRef.getDecl()->parentDecl) -- cgit v1.2.3