aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-02-10 14:10:06 +0000
committergingerBill <bill@gingerbill.org>2023-02-10 14:10:06 +0000
commit1113f23475ee0a80d6760bc6abe302fc1980d4bb (patch)
tree9e1b93fc1c40b8ca45cb9879a67d10eb8864c404 /core/runtime
parent8626f58773ed12be0cdb201007496fe9b353e77c (diff)
Remove unused variable
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/default_allocators_arena.odin1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/runtime/default_allocators_arena.odin b/core/runtime/default_allocators_arena.odin
index 5309893fb..58b1cc679 100644
--- a/core/runtime/default_allocators_arena.odin
+++ b/core/runtime/default_allocators_arena.odin
@@ -30,7 +30,6 @@ safe_add :: #force_inline proc "contextless" (x, y: uint) -> (uint, bool) {
memory_block_alloc :: proc(allocator: Allocator, capacity: uint, loc := #caller_location) -> (block: ^Memory_Block, err: Allocator_Error) {
total_size := uint(capacity + size_of(Memory_Block))
base_offset := uintptr(size_of(Memory_Block))
- protect_offset := uintptr(0)
min_alignment: int = max(16, align_of(Memory_Block))
data := mem_alloc(int(total_size), min_alignment, allocator, loc) or_return