|
From: | Markus Armbruster |
Subject: | Re: [Qemu-devel] [PATCH 5/6] error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o |
Date: | Thu, 18 Mar 2010 19:09:16 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Blue Swirl <address@hidden> writes: > On 3/17/10, Markus Armbruster <address@hidden> wrote: >> Blue Swirl <address@hidden> writes: >> >> > On 3/17/10, Markus Armbruster <address@hidden> wrote: [...] >> >> +void monitor_set_error(Monitor *mon, QError *qerror) >> >> +{ >> >> + assert(0); >> > >> > Please use abort(). >> >> >> Why? > > Because assert(0) does not abort when compiled with -DNDEBUG. Why is that a problem? And why isn't it a problem for the 300+ other assertions in the code?
[Prev in Thread] | Current Thread | [Next in Thread] |