fixes some strictdefs warnings (#24502)

This commit is contained in:
ringabout
2024-12-04 18:28:13 +08:00
committed by GitHub
parent c3120b6121
commit 8f4bfda5f4
19 changed files with 44 additions and 15 deletions

View File

@@ -85,7 +85,7 @@ when hasAlloc and not defined(js):
else:
template incStat(what: untyped) = discard
proc getAllocStats*(): AllocStats = discard
proc getAllocStats*(): AllocStats = result = default(AllocStats)
template alloc*(size: Natural): pointer =
## Allocates a new memory block with at least `size` bytes.