Explorar o código

initialized bool variable is not required on memory space aware allocators, since they are initialized manually.

Ioannis Koutras %!s(int64=13) %!d(string=hai) anos
pai
achega
07993f77d6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/dmmlib/heap.h

+ 2 - 0
include/dmmlib/heap.h

@@ -79,7 +79,9 @@ typedef struct heap_s {
 /** The allocator structure of dmmlib. */
 typedef struct allocator_s {
 	heap_t heaps[NUM_HEAPS]; /**< The heaps that the allocator manages. */
+#ifndef WITH_MEMORY_SPACE_AWARENESS
 	bool initialized; /**< Initialization flag of the allocator. */
+#endif /* WITH_MEMORY_SPACE_AWARENESS */
 	void *border_ptr; /**< Border pointer of the allocator. */
 #ifdef WITH_MEMORY_SPACE_AWARENESS
 	size_t remaining_size; /**< The size of the remaining free space which