mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -1877,8 +1877,9 @@ static void pxa2xx_fir_write(void *opaque, target_phys_addr_t addr,
|
|||
s->control[0] = value;
|
||||
if (!(value & (1 << 4))) /* RXE */
|
||||
s->rx_len = s->rx_start = 0;
|
||||
if (!(value & (1 << 3))) /* TXE */
|
||||
/* Nop */;
|
||||
if (!(value & (1 << 3))) { /* TXE */
|
||||
/* Nop */
|
||||
}
|
||||
s->enable = value & 1; /* ITR */
|
||||
if (!s->enable)
|
||||
s->status[0] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue