forked from OSchip/llvm-project
Fix assigned-but-unused (except in an assert) warning with a void cast
This commit is contained in:
parent
049cfc464d
commit
a46c63c878
|
@ -192,6 +192,7 @@ void OwningMemoryCheck::check(const MatchFinder::MatchResult &Result) {
|
|||
CheckExecuted |= handleReturnValues(Nodes);
|
||||
CheckExecuted |= handleOwnerMembers(Nodes);
|
||||
|
||||
(void)CheckExecuted;
|
||||
assert(CheckExecuted &&
|
||||
"None of the subroutines executed, logic error in matcher!");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue