summaryrefslogtreecommitdiffstats
path: root/hw/omap_mmc.c
diff options
context:
space:
mode:
authorBlue Swirl2010-09-18 09:01:48 +0200
committerBlue Swirl2010-09-18 09:01:48 +0200
commit3ffd710e12ce64478abc027e92fe94e1089ac91c (patch)
treeac9c7acb10abd4ecee917c2ed7b1f770f8126963 /hw/omap_mmc.c
parentUse a few more gcc warning flags (diff)
downloadqemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.gz
qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.xz
qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.zip
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_mmc.c')
-rw-r--r--hw/omap_mmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/omap_mmc.c b/hw/omap_mmc.c
index 15cbf06c87..9d167ff535 100644
--- a/hw/omap_mmc.c
+++ b/hw/omap_mmc.c
@@ -559,8 +559,9 @@ static void omap_mmc_cover_cb(void *opaque, int line, int level)
if (!host->cdet_state && level) {
host->status |= 0x0002;
omap_mmc_interrupts_update(host);
- if (host->cdet_wakeup)
- /* TODO: Assert wake-up */;
+ if (host->cdet_wakeup) {
+ /* TODO: Assert wake-up */
+ }
}
if (host->cdet_state != level) {