mirror of
https://github.com/mii443/qemu.git
synced 2025-08-24 07:59:42 +00:00
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>
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user