summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-04-23 15:34:46 +0800
committerGitHub <noreply@github.com>2023-04-23 15:34:46 +0800
commit265a340e807a44c63c31ba7ffda1f68f6f887624 (patch)
tree1e2087233cba796271343b4b732dc007c8259b3c
parent6ad246b2155bdac0dae35b3853207d72594bdc0b (diff)
downloadNim-265a340e807a44c63c31ba7ffda1f68f6f887624.tar.gz
fixes booting warnings (#21711)
follow up https://github.com/nim-lang/Nim/pull/21604
-rw-r--r--compiler/spawn.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/spawn.nim b/compiler/spawn.nim
index 581f722d5..0931407d4 100644
--- a/compiler/spawn.nim
+++ b/compiler/spawn.nim
@@ -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]