fix warnings
This commit is contained in:
parent
d21bceac89
commit
b0966401c4
2 changed files with 10 additions and 10 deletions
18
src/mem.cpp
18
src/mem.cpp
|
@ -158,15 +158,15 @@ T *arena_push_array(Arena *arena, u64 count)
|
||||||
return ary;
|
return ary;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal
|
// internal
|
||||||
u8 *arena_push_contiguous(Arena *arena, u64 size)
|
// u8 *arena_push_contiguous(Arena *arena, u64 size)
|
||||||
{
|
// {
|
||||||
b32 restore = arena->grow;
|
// b32 restore = arena->grow;
|
||||||
arena->grow = 0;
|
// arena->grow = 0;
|
||||||
void *mem = arena_push_impl(arena, size);
|
// void *mem = arena_push_impl(arena, size);
|
||||||
arena->grow = restore;
|
// arena->grow = restore;
|
||||||
return (u8 *)mem;
|
// return (u8 *)mem;
|
||||||
}
|
// }
|
||||||
|
|
||||||
internal
|
internal
|
||||||
u64 arena_pos(Arena *arena)
|
u64 arena_pos(Arena *arena)
|
||||||
|
|
|
@ -31,7 +31,7 @@ String8 to_pretty_size(Arena *arena, u64 bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal
|
internal
|
||||||
u32 mem_edit_bg_color_fn(const u8 *data, u64 off, const void *user_data)
|
u32 mem_edit_bg_color_fn(const u8 *, u64 off, const void *user_data)
|
||||||
{
|
{
|
||||||
const App_State *app = reinterpret_cast<const App_State *>(user_data);
|
const App_State *app = reinterpret_cast<const App_State *>(user_data);
|
||||||
const RNTuple_Info &rinfo = app->rntinfo;
|
const RNTuple_Info &rinfo = app->rntinfo;
|
||||||
|
|
Loading…
Reference in a new issue