From f068de0f2d2fec6ca6d039a9648316f35e6ad965 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Fri, 13 Sep 2024 20:58:28 -0400 Subject: Fix many warnings --- view/macho/objc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/macho/objc.cpp') diff --git a/view/macho/objc.cpp b/view/macho/objc.cpp index 68bd68d7..f94e0dfd 100644 --- a/view/macho/objc.cpp +++ b/view/macho/objc.cpp @@ -422,7 +422,7 @@ void ObjCProcessor::LoadClasses(BinaryReader* reader, Ref
classPtrSecti classPtr); char hexString[9]; hexString[8] = 0; - snprintf(hexString, sizeof(hexString), "%llx", classPtr); + snprintf(hexString, sizeof(hexString), "%" PRIx64, classPtr); name = "0x" + std::string(hexString); } @@ -548,7 +548,7 @@ void ObjCProcessor::LoadCategories(BinaryReader* reader, Ref
classPtrSe if (size == 0) return; auto ptrSize = m_data->GetAddressSize(); - auto ptrCount = size / m_data->GetAddressSize(); + //auto ptrCount = size / m_data->GetAddressSize(); auto classPtrSectionStart = classPtrSection->GetStart(); auto classPtrSectionEnd = classPtrSection->GetEnd(); -- cgit v1.3.1