https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=6fbd3d4aa17e9fc9f36bb310739cdc16bad6a774
commit 6fbd3d4aa17e9fc9f36bb310739cdc16bad6a774
Author: Paul Floyd <pj...@wa...>
Date: Sun Nov 3 09:50:37 2024 +0100
Fix compiler warnings produced by clang 19.
Diff:
---
VEX/priv/host_x86_defs.c | 2 +-
coregrind/m_cache.c | 2 +-
coregrind/m_debuginfo/d3basics.c | 2 +-
coregrind/m_debuginfo/readdwarf.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/VEX/priv/host_x86_defs.c b/VEX/priv/host_x86_defs.c
index b1c349afbc..5497efdf7a 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 565aa41767..d12941cd68 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 97ecbdaf4c..564b832e63 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 48df2e73ec..0686e8d078 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;
}
|