* fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
This commit is contained in:
parent
380a505507
commit
6e0c06f50e
11 changed files with 27 additions and 12 deletions
|
|
@ -289,7 +289,15 @@ type
|
|||
severity: Severity) {.closure, gcsafe.}
|
||||
cppCustomNamespace*: string
|
||||
|
||||
proc setNoteDefaults*(conf: ConfigRef, note: TNoteKind, enabled = true) =
|
||||
template fun(op) =
|
||||
conf.notes.op note
|
||||
conf.mainPackageNotes.op note
|
||||
conf.foreignPackageNotes.op note
|
||||
if enabled: fun(incl) else: fun(excl)
|
||||
|
||||
proc setNote*(conf: ConfigRef, note: TNoteKind, enabled = true) =
|
||||
# see also `prepareConfigNotes` which sets notes
|
||||
if note notin conf.cmdlineNotes:
|
||||
if enabled: incl(conf.notes, note) else: excl(conf.notes, note)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue