diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-11 21:56:13 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-12 18:43:02 -0500 |
| commit | c5edc003b1c0667c936c2ba3a278821da28c3b42 (patch) | |
| tree | af7e9737853ef54a95c4b253205d5327a9f6d299 /view/sharedcache/core/SharedCache.cpp | |
| parent | acea6d4a7bb2cef1f84c68c3687331534fe1ede1 (diff) | |
[SharedCache] Fix misc compiler warnings
These are from clang so there are still a bunch of warnings on GCC and MSVC
Diffstat (limited to 'view/sharedcache/core/SharedCache.cpp')
| -rw-r--r-- | view/sharedcache/core/SharedCache.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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; |
