From c5edc003b1c0667c936c2ba3a278821da28c3b42 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 11 Feb 2025 21:56:13 -0500 Subject: [SharedCache] Fix misc compiler warnings These are from clang so there are still a bunch of warnings on GCC and MSVC --- view/sharedcache/core/SharedCache.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'view/sharedcache/core/SharedCache.cpp') diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp index 2eae9d44..1f3219df 100644 --- a/view/sharedcache/core/SharedCache.cpp +++ b/view/sharedcache/core/SharedCache.cpp @@ -1539,7 +1539,6 @@ bool SharedCache::LoadSectionAtAddress(uint64_t address) } SharedCacheMachOHeader targetHeader; - CacheImage* targetImage = nullptr; MemoryRegion* targetSegment = nullptr; for (auto& image : MutableState().images) @@ -1549,7 +1548,6 @@ bool SharedCache::LoadSectionAtAddress(uint64_t address) if (region.start <= address && region.start + region.size > address) { targetHeader = MutableState().headers[image.headerLocation]; - targetImage = ℑ targetSegment = ®ion; break; } @@ -2532,7 +2530,6 @@ void SharedCache::InitializeHeader( vm->MappingAtAddress(header.linkeditSegment.vmaddr) .first.fileAccessor->lock() ->ReadBuffer(header.functionStarts.funcoff, header.functionStarts.funcsize); - size_t i = 0; uint64_t curfunc = header.textBase; uint64_t curOffset; -- cgit v1.3.1