summaryrefslogtreecommitdiffstats
path: root/hw/omap_i2c.c
diff options
context:
space:
mode:
authorBlue Swirl2010-09-18 09:01:48 +0200
committerBlue Swirl2010-09-18 09:01:48 +0200
commit3ffd710e12ce64478abc027e92fe94e1089ac91c (patch)
treeac9c7acb10abd4ecee917c2ed7b1f770f8126963 /hw/omap_i2c.c
parentUse a few more gcc warning flags (diff)
downloadqemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.gz
qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.xz
qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.zip
Use gcc warning flag -Wempty-body
If the compiler supports the warning flag -Wempty-body, use it. Adjust the code to avoid the warnings. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/omap_i2c.c')
-rw-r--r--hw/omap_i2c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/omap_i2c.c b/hw/omap_i2c.c
index d7c18882da..d133977e7f 100644
--- a/hw/omap_i2c.c
+++ b/hw/omap_i2c.c
@@ -190,8 +190,9 @@ static uint32_t omap_i2c_read(void *opaque, target_phys_addr_t addr)
if (s->rxlen > 2)
s->fifo >>= 16;
s->rxlen -= 2;
- } else
- /* XXX: remote access (qualifier) error - what's that? */;
+ } else {
+ /* XXX: remote access (qualifier) error - what's that? */
+ }
if (!s->rxlen) {
s->stat &= ~(1 << 3); /* RRDY */
if (((s->control >> 10) & 1) && /* MST */