From 4e0010da0be8feb304532c67b7889f3a39a802b1 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 6 Jun 2020 22:36:56 +0200 Subject: [PATCH] Fix compiler warnings --- source/main.cpp | 1 - source/memory_mapping.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 99df72a..7264349 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -33,7 +33,6 @@ WUMS_APPLICATION_STARTS() { break; } void *address = (void *) (mem_mapping[i].effective_start_address); - uint32_t size = mem_mapping[i].effective_end_address - mem_mapping[i].effective_start_address; MEMExpHeapBlock *curUsedBlock = ((MEMExpHeap *) address)->usedList.head; while (curUsedBlock != 0) { diff --git a/source/memory_mapping.cpp b/source/memory_mapping.cpp index bb219b0..1f8e2d8 100644 --- a/source/memory_mapping.cpp +++ b/source/memory_mapping.cpp @@ -777,7 +777,6 @@ uint32_t MemoryMapping_PhysicalToEffective(uint32_t phyiscalAddress) { uint32_t result = 0; const memory_values_t *curMemValues = NULL; - int32_t curOffset = 0; //iterate through all own mapped memory regions for (int32_t i = 0; true; i++) { if (mem_mapping[i].physical_addresses == NULL) {