fixes booting warnings (#21711)

follow up https://github.com/nim-lang/Nim/pull/21604
This commit is contained in:
ringabout
2023-04-23 15:34:46 +08:00
committed by GitHub
parent 6ad246b215
commit 265a340e80

View File

@@ -317,7 +317,7 @@ proc setupArgsForParallelism(g: ModuleGraph; n: PNode; objType: PType;
call.add(threadLocal.newSymNode)
proc wrapProcForSpawn*(g: ModuleGraph; idgen: IdGenerator; owner: PSym; spawnExpr: PNode; retType: PType;
barrier, dest: PNode = nil): PNode =
barrier: PNode = nil, dest: PNode = nil): PNode =
# if 'barrier' != nil, then it is in a 'parallel' section and we
# generate quite different code
let n = spawnExpr[^2]