summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorEduardo Bart <edub4rt@gmail.com>2016-06-20 18:57:45 -0300
committerEduardo Bart <edub4rt@gmail.com>2016-06-20 19:22:09 -0300
commit48d37900a9980f57dc3fa5ced5d7dc1e1fd75e5a (patch)
tree4ac19bb726838efd91097d11ad63cb2fb577a105 /compiler
parentb92b597062aab6537c94eed79a42c82db841bf57 (diff)
downloadNim-48d37900a9980f57dc3fa5ced5d7dc1e1fd75e5a.tar.gz
Fix disabling hintProcessing
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim1
-rw-r--r--compiler/msgs.nim4
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 5601ef662..b3edb5e14 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -185,6 +185,7 @@ proc processSpecificNote(arg: string, state: TSpecialWord, pass: TCmdLinePass,
   of wOff:
     excl(gNotes, n)
     incl(disableNotes, n)
+    excl(ForeignPackageNotes, n)
   else: localError(info, errOnOrOffExpectedButXFound, arg)
 
 proc processCompile(filename: string) =
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index ce9d8c8b6..098370e41 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -502,8 +502,6 @@ type
   ESuggestDone* = object of Exception
 
 const
-  ForeignPackageNotes*: TNoteKinds = {hintProcessing, warnUnknownMagic,
-    hintQuitCalled}
   NotesVerbosity*: array[0..3, TNoteKinds] = [
     {low(TNoteKind)..high(TNoteKind)} - {warnShadowIdent, warnUninit,
                                          warnProveField, warnProveIndex,
@@ -531,6 +529,8 @@ const
   InvalidFileIDX* = int32(-1)
 
 var
+  ForeignPackageNotes*: TNoteKinds = {hintProcessing, warnUnknownMagic,
+    hintQuitCalled}
   filenameToIndexTbl = initTable[string, int32]()
   fileInfos*: seq[TFileInfo] = @[]
   systemFileIdx*: int32