mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 23:01:05 +08:00
Fix an instance of -Wunreachable-code-aggressive.
Bug: chromium:1066980 Change-Id: I7efc356b5457c159c8775f51e3ab5732f51c3f18 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3085085 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org>
This commit is contained in:
parent
7b64a33b24
commit
ecefe3cd28
@ -201,12 +201,10 @@ void DoCrash(const StartHandlerForSelfTestOptions& options,
|
||||
|
||||
case CrashType::kBuiltinTrap:
|
||||
__builtin_trap();
|
||||
break;
|
||||
|
||||
case CrashType::kInfiniteRecursion:
|
||||
int val = 42;
|
||||
exit(RecurseInfinitely(&val));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user