diff options
author | Blue Swirl | 2010-09-18 09:01:48 +0200 |
---|---|---|
committer | Blue Swirl | 2010-09-18 09:01:48 +0200 |
commit | 3ffd710e12ce64478abc027e92fe94e1089ac91c (patch) | |
tree | ac9c7acb10abd4ecee917c2ed7b1f770f8126963 /hw/omap_mmc.c | |
parent | Use a few more gcc warning flags (diff) | |
download | qemu-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.c | 5 |
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) { |