]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compiler warnings produced by clang 19.
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Nov 2024 08:50:37 +0000 (09:50 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Nov 2024 08:50:37 +0000 (09:50 +0100)
VEX/priv/host_x86_defs.c
coregrind/m_cache.c
coregrind/m_debuginfo/d3basics.c
coregrind/m_debuginfo/readdwarf.c

index b1c349afbcfc173ba0ce003e55b93c5ffb8891fe..5497efdf7a7fdf0821eabb09b90459db79ebc521 100644 (file)
@@ -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:
index 565aa4176771aecb1c55f00d71f8f1ced84bbee7..d12941cd68477b9443174616068ea3da529be360 100644 (file)
@@ -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;
             }
index 97ecbdaf4cbfa6dea952361f5620751d2b30ac06..564b832e63a036a2bf140f546ca68c4392afd45d 100644 (file)
@@ -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*/
       }
index 48df2e73ecbece0dac83b536f48cc2b7f337e5dc..0686e8d078a7123a0de8dd6eb3b89605976439fd 100644 (file)
@@ -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;
       }