diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-09-13 20:58:28 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-09-13 20:58:28 -0400 |
| commit | f068de0f2d2fec6ca6d039a9648316f35e6ad965 (patch) | |
| tree | fffa286f3251cd4b18f7ae43615824871ad77776 /view/macho/objc.cpp | |
| parent | 590b594850ccd15b9e2cb2b0e8f3050d782647b3 (diff) | |
Fix many warnings
Diffstat (limited to 'view/macho/objc.cpp')
| -rw-r--r-- | view/macho/objc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Section> 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<Section> 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(); |
