From ed0f3b1b8593f6b76fbb64c53a0885073c1c1979 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Fri, 19 Dec 2025 11:12:20 -0800 Subject: Fix many of the warnings that show up when compiling with GCC 15.2 --- arch/powerpc/arch_ppc.cpp | 6 +++--- arch/powerpc/disassembler.cpp | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'arch/powerpc') diff --git a/arch/powerpc/arch_ppc.cpp b/arch/powerpc/arch_ppc.cpp index f10757d5..a1605923 100644 --- a/arch/powerpc/arch_ppc.cpp +++ b/arch/powerpc/arch_ppc.cpp @@ -517,14 +517,14 @@ class PowerpcArchitecture: public Architecture case PPC_OP_SIMM: if (op->simm < 0 && op->simm > -0x10000) - snprintf(buf, sizeof(buf), "-0x%llx", -op->simm); + snprintf(buf, sizeof(buf), "-0x%" PRIx64, -op->simm); else - snprintf(buf, sizeof(buf), "0x%llx", op->simm); + snprintf(buf, sizeof(buf), "0x%" PRIx64, op->simm); result.emplace_back(IntegerToken, buf, op->simm, 4); break; case PPC_OP_LABEL: - snprintf(buf, sizeof(buf), "0x%llx", op->label); + snprintf(buf, sizeof(buf), "0x%" PRIx64, op->label); result.emplace_back(CodeRelativeAddressToken, buf, op->label, 4); break; diff --git a/arch/powerpc/disassembler.cpp b/arch/powerpc/disassembler.cpp index 54e3c87c..e24f273b 100644 --- a/arch/powerpc/disassembler.cpp +++ b/arch/powerpc/disassembler.cpp @@ -1,7 +1,6 @@ #include -#include #include "binaryninjaapi.h" @@ -98,14 +97,14 @@ bool PushOperandTokens(string& result, const Operand* op) case PPC_OP_SIMM: if (op->simm < 0 && op->simm > -0x10000) - snprintf(buf, sizeof(buf), "-0x%llx", -op->simm); + snprintf(buf, sizeof(buf), "-0x%" PRIx64, -op->simm); else - snprintf(buf, sizeof(buf), "0x%llx", op->simm); + snprintf(buf, sizeof(buf), "0x%" PRIx64, op->simm); result += buf; break; case PPC_OP_LABEL: - snprintf(buf, sizeof(buf), "0x%llx", op->label); + snprintf(buf, sizeof(buf), "0x%" PRIx64, op->label); result += buf; break; -- cgit v1.3.1