From: Mark Wielaard Date: Sat, 23 Jan 2021 20:54:07 +0000 (+0100) Subject: Define AT as UChar in VEX/priv/guest_ppc_toIR.c (dis_vsx_accumulator_prefix) X-Git-Tag: VALGRIND_3_17_0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f64e8d33455a35e2c49598d32caea29994a022;p=thirdparty%2Fvalgrind.git 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. --- 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 );