From 48d37900a9980f57dc3fa5ced5d7dc1e1fd75e5a Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Mon, 20 Jun 2016 18:57:45 -0300 Subject: [PATCH] Fix disabling hintProcessing --- compiler/commands.nim | 1 + compiler/msgs.nim | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/commands.nim b/compiler/commands.nim index 5601ef662f..b3edb5e149 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 ce9d8c8b64..098370e41f 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