display: avoid multi-statement macro
commit2cdaca90ddf3291f308a10623c1a802ef760bac1
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Jan 2014 14:47:33 +0000 (31 14:47 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 31 Jan 2014 14:47:33 +0000 (31 14:47 +0000)
treee5b7734441cf70ebeee56b9d20d09afe362f0aac
parentb48adc0d301464d627d6d0f83dee911a2138187f
display: avoid multi-statement macro

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 <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/display/blizzard_template.h
hw/display/pl110_template.h
hw/display/pxa2xx_template.h
hw/display/tc6393xb_template.h