mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Replace assert(0) with abort() or cpu_abort()
When building with -DNDEBUG, assert(0) will not stop execution so it must not be used for abnormal termination. Use cpu_abort() when in CPU context, abort() otherwise. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
609c1daced
commit
43dc2a645e
13 changed files with 56 additions and 56 deletions
|
@ -411,7 +411,6 @@ static void QEMU_NORETURN force_sig(int target_sig)
|
|||
sigsuspend(&act.sa_mask);
|
||||
|
||||
/* unreachable */
|
||||
assert(0);
|
||||
abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue