diff options
author | Adam Strzelecki <ono@java.pl> | 2015-06-06 11:07:23 +0200 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-07-03 12:37:42 +0200 |
commit | 14e6ff678053c98a156d47f431c1f6c3c2cb1400 (patch) | |
tree | c3b6c05848bbc8efb5013bbea26742641eacfc5f /compiler/rodread.nim | |
parent | e43daf3d240207bab19c3014a8788717868d5897 (diff) | |
download | Nim-14e6ff678053c98a156d47f431c1f6c3c2cb1400.tar.gz |
Introduce NotesVerbosity defining verbosity levels
This solves two issues: 1. Some notes were enabled explicitly for some verbosity levels, so --hintName:on has no effect if verbosity level was too low. 2. Verbosity level for notes is not longer scattered across the source code, instead if now lives in msgs.nim NotesVerbosity array 3. Individual note settings have stronger effect than verbosity setting, so --hintName:off will disable hint regardless of high verbosity setting, and vice-versa --hintName:on will enable hint even on low verbosity setting.
Diffstat (limited to 'compiler/rodread.nim')
-rw-r--r-- | compiler/rodread.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rodread.nim b/compiler/rodread.nim index c1c27aedb..080c93a26 100644 --- a/compiler/rodread.nim +++ b/compiler/rodread.nim @@ -838,7 +838,7 @@ proc checkDep(fileIdx: int32): TReasonForRecompile = if res != rrNone: result = rrModDeps # we cannot break here, because of side-effects of `checkDep` - if result != rrNone and gVerbosity > 0: + if result != rrNone: rawMessage(hintProcessing, reasonToFrmt[result] % filename) if result != rrNone or optForceFullMake in gGlobalOptions: # recompilation is necessary: |