Fix assigned-but-unused (except in an assert) warning with a void cast

This commit is contained in:
David Blaikie 2021-07-18 21:44:08 -07:00
parent 049cfc464d
commit a46c63c878
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ void OwningMemoryCheck::check(const MatchFinder::MatchResult &Result) {
CheckExecuted |= handleReturnValues(Nodes); CheckExecuted |= handleReturnValues(Nodes);
CheckExecuted |= handleOwnerMembers(Nodes); CheckExecuted |= handleOwnerMembers(Nodes);
(void)CheckExecuted;
assert(CheckExecuted && assert(CheckExecuted &&
"None of the subroutines executed, logic error in matcher!"); "None of the subroutines executed, logic error in matcher!");
} }