qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 04/29] qtest: Don't perform side effects insi


From: Thomas Huth
Subject: Re: [Qemu-devel] [PATCH v6 04/29] qtest: Don't perform side effects inside assertion
Date: Mon, 4 Sep 2017 16:06:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 01.09.2017 20:03, Eric Blake wrote:
> Assertions should be separate from the side effects, since in
> theory, g_assert() can be disabled (in practice, we can't really
> ever do that).
> 
> Signed-off-by: Eric Blake <address@hidden>
> ---
>  qtest.c | 80 
> ++++++++++++++++++++++++++++++++++++++++++++++-------------------
>  1 file changed, 57 insertions(+), 23 deletions(-)

Right, we should get rid of this bad coding style in the QEMU sources.

Reviewed-by: Thomas Huth <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]