Skip to content

Commit 817df79

Browse files
committed
[clang-tidy] Silence unused variable warning in release builds. NFCI.
1 parent 5b32102 commit 817df79

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,11 @@ void SignalHandlerCheck::registerMatchers(MatchFinder *Finder) {
335335
}
336336

337337
void SignalHandlerCheck::check(const MatchFinder::MatchResult &Result) {
338-
const auto *SignalCall = Result.Nodes.getNodeAs<CallExpr>("register_call");
339338
const auto *HandlerDecl =
340339
Result.Nodes.getNodeAs<FunctionDecl>("handler_decl");
341340
const auto *HandlerExpr = Result.Nodes.getNodeAs<DeclRefExpr>("handler_expr");
342-
assert(SignalCall && HandlerDecl && HandlerExpr &&
343-
"All of these should exist in a match here.");
341+
assert(Result.Nodes.getNodeAs<CallExpr>("register_call") && HandlerDecl &&
342+
HandlerExpr && "All of these should exist in a match here.");
344343

345344
if (CG.size() <= 1) {
346345
// Call graph must be populated with the entire TU at the beginning.

0 commit comments

Comments
 (0)