From 6ad6135dcaec584958179bb57a954d3f8d890919 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 18 Apr 2010 14:22:14 +0000 Subject: Fix harmless if statements with empty body, spotted by clang These clang errors are harmless but worth fixing: CC ppc-softmmu/usb-ohci.o /src/qemu/hw/usb-ohci.c:1104:59: error: if statement has empty body [-Wempty-body] ohci->ctrl_head, ohci->ctrl_cur); /src/qemu/hw/usb-ohci.c:1371:57: error: if statement has empty body [-Wempty-body] DPRINTF("usb-ohci: port %d: SUSPEND\n", portnum); CC sparc64-softmmu/translate.o /src/qemu/target-sparc/translate.c:3173:37: error: if statement has empty body [-Wempty-body] ; // XXX Signed-off-by: Blue Swirl --- target-sparc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target-sparc/translate.c') diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 4f25278a7d..b54c520855 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3169,8 +3169,9 @@ static void disas_sparc_insn(DisasContext * dc) break; case 0xf: /* V9 sir, nop if user */ #if !defined(CONFIG_USER_ONLY) - if (supervisor(dc)) + if (supervisor(dc)) { ; // XXX + } #endif break; case 0x13: /* Graphics Status */ -- cgit v1.2.3