parent
64165f03fc
commit
0887dcc398
1 changed files with 5 additions and 6 deletions
|
|
@ -296,7 +296,6 @@ proc useVarNoInitCheck(a: PEffects; n: PNode; s: PSym) =
|
||||||
if {sfGlobal, sfThread} * s.flags != {} and s.kind in {skVar, skLet} and
|
if {sfGlobal, sfThread} * s.flags != {} and s.kind in {skVar, skLet} and
|
||||||
s.magic != mNimvm:
|
s.magic != mNimvm:
|
||||||
if s.guard != nil: guardGlobal(a, n, s.guard)
|
if s.guard != nil: guardGlobal(a, n, s.guard)
|
||||||
if strictEffects notin a.c.features:
|
|
||||||
if {sfGlobal, sfThread} * s.flags == {sfGlobal} and
|
if {sfGlobal, sfThread} * s.flags == {sfGlobal} and
|
||||||
(tfHasGCedMem in s.typ.flags or s.typ.isGCedMem):
|
(tfHasGCedMem in s.typ.flags or s.typ.isGCedMem):
|
||||||
#if a.config.hasWarn(warnGcUnsafe): warnAboutGcUnsafe(n)
|
#if a.config.hasWarn(warnGcUnsafe): warnAboutGcUnsafe(n)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue