OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d5438
)
Fix harmless if statement with empty body, spotted by clang
author
Blue Swirl
<blauwirbel@gmail.com>
Fri, 23 Apr 2010 19:22:12 +0000
(19:22 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 23 Apr 2010 19:22:12 +0000
(19:22 +0000)
This clang error is harmless but worth fixing:
CC libhw32/rc4030.o
/src/qemu/hw/rc4030.c:244:66: error: if statement has empty body [-Wempty-body]
DPRINTF("read 0x%02x at " TARGET_FMT_plx "\n", val, addr);
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/rc4030.c
patch
|
blob
|
history
diff --git
a/hw/rc4030.c
b/hw/rc4030.c
index
c2b2a3e
..
2a8233a
100644
(file)
--- a/
hw/rc4030.c
+++ b/
hw/rc4030.c
@@
-240,8
+240,9
@@
static uint32_t rc4030_readl(void *opaque, target_phys_addr_t addr)
break;
}
- if ((addr & ~3) != 0x230)
+ if ((addr & ~3) != 0x230)
{
DPRINTF("read 0x%02x at " TARGET_FMT_plx "\n", val, addr);
+ }
return val;
}