mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 23:41:29 +00:00
fixes some strictdefs warnings (#24502)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user