From ad5171dbd419ffa9e10de766e1c3198f2ae62dfa Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 21 Feb 2014 18:18:34 +0100 Subject: tcg: Fix warning (1 bit signed bitfield entry) and replace int by bool Static code analyzers complain about signed bitfields with only a single bit. is_ld is used as a boolean value, so make it bool. ppc64 already used bool for the 2nd argument is_ld of the local function add_qemu_ldst_label. Modify all other TCG targets to do follow this example. Signed-off-by: Stefan Weil Signed-off-by: Richard Henderson --- tcg/tcg-be-ldst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcg/tcg-be-ldst.h') diff --git a/tcg/tcg-be-ldst.h b/tcg/tcg-be-ldst.h index 284db0c70d..ad94c0ca51 100644 --- a/tcg/tcg-be-ldst.h +++ b/tcg/tcg-be-ldst.h @@ -24,7 +24,7 @@ #define TCG_MAX_QEMU_LDST 640 typedef struct TCGLabelQemuLdst { - int is_ld:1; /* qemu_ld: 1, qemu_st: 0 */ + bool is_ld:1; /* qemu_ld: true, qemu_st: false */ TCGMemOp opc:4; TCGReg addrlo_reg; /* reg index for low word of guest virtual addr */ TCGReg addrhi_reg; /* reg index for high word of guest virtual addr */ -- cgit v1.2.3