add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
This commit is contained in:
parent
35e14998ec
commit
31bb67a309
20 changed files with 43 additions and 23 deletions
|
|
@ -2,3 +2,15 @@
|
|||
|
||||
cppDefine "errno"
|
||||
cppDefine "unix"
|
||||
|
||||
when defined(nimStrictMode):
|
||||
# xxx add more flags here, and use `-d:nimStrictMode` in more contexts in CI.
|
||||
|
||||
# pending bug #14246, enable this:
|
||||
# when defined(nimHasWarningAsError):
|
||||
# switch("warningAsError", "UnusedImport")
|
||||
|
||||
when defined(nimHasHintAsError):
|
||||
# switch("hint", "ConvFromXtoItselfNotNeeded")
|
||||
switch("hintAsError", "ConvFromXtoItselfNotNeeded")
|
||||
# future work: XDeclaredButNotUsed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue