mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-26 09:14:00 +00:00
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user