From: Paul Floyd Date: Sun, 3 Nov 2024 08:50:37 +0000 (+0100) Subject: Fix compiler warnings produced by clang 19. X-Git-Tag: VALGRIND_3_25_0~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fbd3d4aa17e9fc9f36bb310739cdc16bad6a774;p=thirdparty%2Fvalgrind.git Fix compiler warnings produced by clang 19. --- diff --git a/VEX/priv/host_x86_defs.c b/VEX/priv/host_x86_defs.c index b1c349afb..5497efdf7 100644 --- a/VEX/priv/host_x86_defs.c +++ b/VEX/priv/host_x86_defs.c @@ -1141,7 +1141,7 @@ void ppX86Instr ( const X86Instr* i, Bool mode64 ) { ppHRegX86(i->Xin.FpCmp.dst); break; case Xin_SseConst: - vex_printf("const $0x%04x,", (Int)i->Xin.SseConst.con); + vex_printf("const $0x%04x,", (UInt)i->Xin.SseConst.con); ppHRegX86(i->Xin.SseConst.dst); break; case Xin_SseLdSt: diff --git a/coregrind/m_cache.c b/coregrind/m_cache.c index 565aa4176..d12941cd6 100644 --- a/coregrind/m_cache.c +++ b/coregrind/m_cache.c @@ -336,7 +336,7 @@ Intel_cache_info(Int level, VexCacheInfo *ci) } break; default: - VG_(debugLog)(1, "cache", "warning: L%u cache ignored\n", + VG_(debugLog)(1, "cache", "warning: L%d cache ignored\n", (info[0] & 0xe0) >> 5); break; } diff --git a/coregrind/m_debuginfo/d3basics.c b/coregrind/m_debuginfo/d3basics.c index 97ecbdaf4..564b832e6 100644 --- a/coregrind/m_debuginfo/d3basics.c +++ b/coregrind/m_debuginfo/d3basics.c @@ -1059,7 +1059,7 @@ GXResult ML_(evaluate_Dwarf3_Expr) ( const UChar* expr, UWord exprszB, if (!VG_(clo_xml)) VG_(message)(Vg_DebugMsg, "warning: evaluate_Dwarf3_Expr: unhandled " - "DW_OP_ 0x%x\n", (Int)opcode); + "DW_OP_ 0x%x\n", (UInt)opcode); FAIL("evaluate_Dwarf3_Expr: unhandled DW_OP_"); /*NOTREACHED*/ } diff --git a/coregrind/m_debuginfo/readdwarf.c b/coregrind/m_debuginfo/readdwarf.c index 48df2e73e..0686e8d07 100644 --- a/coregrind/m_debuginfo/readdwarf.c +++ b/coregrind/m_debuginfo/readdwarf.c @@ -3339,7 +3339,7 @@ static Int dwarfexpr_to_dag ( const UnwindContext* ctx, if (!VG_(clo_xml)) VG_(message)(Vg_DebugMsg, "Warning: DWARF2 CFI reader: unhandled DW_OP_ " - "opcode 0x%x\n", (Int)opcode); + "opcode 0x%x\n", (UInt)opcode); return -1; }