warning diagnostics for unused locals

This commit is contained in:
2026-07-08 18:45:55 +02:00
parent f171a6579d
commit 5e18df9bc1
10 changed files with 378 additions and 112 deletions
+2 -2
View File
@@ -8,10 +8,10 @@ Allocator :: struct {
heap Allocator :: Allocator {
context = none,
alloc = func(context ?*mut anyopaque, size usize, alignment usize) ?*mut u8 {
alloc = func(_ ?*mut anyopaque, size usize, _ usize) ?*mut u8 {
return ptr_cast(u8, c.malloc(size))
},
free = func(context ?*mut anyopaque, memory ?*mut u8, size usize, alignment usize) void {
free = func(_ ?*mut anyopaque, memory ?*mut u8, _ usize, _ usize) void {
c.free(memory)
},
}