aboutsummaryrefslogtreecommitdiff
path: root/src/build_settings.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-26 15:41:32 +0100
committergingerBill <bill@gingerbill.org>2021-08-26 15:41:32 +0100
commit3e4d615983f76616b5a598b89b75aa84975a4aab (patch)
tree304f5b8a33d5bfa74f0364f42aa4cc4eaedaf5f6 /src/build_settings.cpp
parentaa8777ee47f503eb90d4e2225274d0d20a9b39a3 (diff)
Minor fixes
Diffstat (limited to 'src/build_settings.cpp')
-rw-r--r--src/build_settings.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp
index 841870fec..f3cc45ae8 100644
--- a/src/build_settings.cpp
+++ b/src/build_settings.cpp
@@ -609,7 +609,6 @@ String path_to_fullpath(gbAllocator a, String s);
String internal_odin_root_dir(void) {
String path = global_module_path;
isize len, i;
- gbTempArenaMemory tmp;
u8 *text;
if (global_module_path_set) {
@@ -652,9 +651,6 @@ String internal_odin_root_dir(void) {
mutex_lock(&string_buffer_mutex);
defer (mutex_unlock(&string_buffer_mutex));
- tmp = gb_temp_arena_memory_begin(&string_buffer_arena);
- defer (gb_temp_arena_memory_end(tmp));
-
text = gb_alloc_array(permanent_allocator(), u8, len + 1);
gb_memmove(text, &path_buf[0], len);