From 4d683fc689e124cfb0ba3ddd6e68d3e3e9b9b343 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 10 Apr 2023 15:43:12 +0800 Subject: fixes booting warnings (#21583) --- compiler/semtypes.nim | 3 +-- compiler/sighashes.nim | 3 +-- compiler/types.nim | 2 +- compiler/vmops.nim | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) (limited to 'compiler') diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 281862ffe..f2846377c 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -803,8 +803,7 @@ proc semRecordNodeAux(c: PContext, n: PNode, check: var IntSet, pos: var int, else: illFormedAst(n, c.config) if c.inGenericContext > 0: # use a new check intset here for each branch: - var newCheck: IntSet - assign(newCheck, check) + var newCheck: IntSet = check var newPos = pos var newf = newNodeI(nkRecList, n.info) semRecordNodeAux(c, it[idx], newCheck, newPos, newf, rectype, hasCaseFields) diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim index 7e2a0b660..e46508cf2 100644 --- a/compiler/sighashes.nim +++ b/compiler/sighashes.nim @@ -9,11 +9,10 @@ ## Computes hash values for routine (proc, method etc) signatures. -import ast, tables, ropes, md5, modulegraphs, options, msgs, packages, pathutils +import ast, tables, ropes, md5, modulegraphs, options, msgs, pathutils from hashes import Hash import types -import std/os when defined(nimPreviewSlimSystem): import std/assertions diff --git a/compiler/types.nim b/compiler/types.nim index 457568e32..387429567 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -1686,7 +1686,7 @@ proc isTupleRecursive(t: PType, cycleDetector: var IntSet): bool = of tyTuple: var cycleDetectorCopy: IntSet for i in 0..