From b9f64e8d33455a35e2c49598d32caea29994a022 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 23 Jan 2021 21:54:07 +0100 Subject: [PATCH] Define AT as UChar in VEX/priv/guest_ppc_toIR.c (dis_vsx_accumulator_prefix) GCC notices that AT is passed around as char, specifically as %u argument to DIP. But ifieldAT returns an UChar and vsx_matrix_ger takes AT as UChar. This causes lots of format string warnings when building with GCC11. Simply declare AT as UChar instead of char. --- VEX/priv/guest_ppc_toIR.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VEX/priv/guest_ppc_toIR.c b/VEX/priv/guest_ppc_toIR.c index 0b7fe23874..3d4833d96a 100644 --- a/VEX/priv/guest_ppc_toIR.c +++ b/VEX/priv/guest_ppc_toIR.c @@ -33980,7 +33980,7 @@ static Bool dis_vsx_accumulator_prefix ( UInt prefix, UInt theInstr, UChar opc1 = ifieldOPC(theInstr); UChar opc2 = IFIELD( theInstr, 1, 10); UInt bit11_15 = IFIELD( theInstr, (31-15), 5); - char AT = ifieldAT(theInstr); + UChar AT = ifieldAT(theInstr); Bool is_prefix = prefix_instruction( prefix ); UChar rA_addr = ifieldRegA( theInstr ); UChar rB_addr = ifieldRegB( theInstr ); -- 2.47.2