qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH target-arm v2] display: avoid multi-statement ma


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH target-arm v2] display: avoid multi-statement macro
Date: Mon, 27 Jan 2014 17:58:25 +0000

On 24 January 2014 19:08, Paolo Bonzini <address@hidden> wrote:
> For blizzard, pl110 and tc6393xb this is harmless, but for pxa2xx
> Coverity noticed that it is used inside an "if" statement.
> Fix it because it's the file with the highest number of defects
> in the whole QEMU tree!  Use "do...while(0)", or just remove the
> semicolon if there's a single statement in the macro.
>
> Signed-off-by: Paolo Bonzini <address@hidden>

checkpatch says:
total: 29 errors, 0 warnings, 111 lines checked

some of which are genuinely new with this patch.
In general it's better to fix the nits if you're messing
with the file anyway; could you do that, please?

thanks
-- PMM



reply via email to

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