mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06: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:
parent
a21493e009
commit
3ffd710e12
6 changed files with 14 additions and 10 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue