diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-09-18 07:01:48 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-09-18 07:01:48 +0000 |
commit | 3ffd710e12ce64478abc027e92fe94e1089ac91c (patch) | |
tree | ac9c7acb10abd4ecee917c2ed7b1f770f8126963 /hw/omap_i2c.c | |
parent | a21493e00952e5d7cd948951f2677b0d0e465ccd (diff) | |
download | qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.zip qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.gz qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.bz2 |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/omap_i2c.c b/hw/omap_i2c.c index d7c1888..d133977 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 */ |