Merge pull request #4379 from edubart/fix-disable-hints

Fix disabling hintProcessing
This commit is contained in:
Andreas Rumpf
2016-06-21 00:46:45 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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) =

View File

@@ -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