summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-19 23:59:29 +0200
committerAraq <rumpf_a@web.de>2014-10-19 23:59:29 +0200
commit1ddc42f570c0ab70b7f97222cdbd77bb49b38716 (patch)
treebde0c6155dd0957a77db6512c7bf8aade9488969
parentf09af72bd7b869703f11d632fb89ee36e7d14f32 (diff)
downloadNim-1ddc42f570c0ab70b7f97222cdbd77bb49b38716.tar.gz
default to warnGcUnsafe for threads:on
-rw-r--r--compiler/commands.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 87e94d9c9..cea965f5c 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -393,7 +393,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
   of "linedir": processOnOffSwitch({optLineDir}, arg, pass, info)
   of "assertions", "a": processOnOffSwitch({optAssert}, arg, pass, info)
   of "deadcodeelim": processOnOffSwitchG({optDeadCodeElim}, arg, pass, info)
-  of "threads": processOnOffSwitchG({optThreads}, arg, pass, info)
+  of "threads":
+    processOnOffSwitchG({optThreads}, arg, pass, info)
+    if optThreads in gGlobalOptions: incl(gNotes, warnGcUnsafe)
   of "tlsemulation": processOnOffSwitchG({optTlsEmulation}, arg, pass, info)
   of "taintmode": processOnOffSwitchG({optTaintMode}, arg, pass, info)
   of "implicitstatic":