diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-10-29 21:48:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 14:48:11 +0100 |
commit | e17237ce9dbf5410623e9d510217e7817bf4fd89 (patch) | |
tree | d521fd68ae6e7abff399c13b51a55352de379d28 /compiler/nim.cfg | |
parent | 0c26d19e228e831393cb5d2c1f43660362d349c9 (diff) | |
download | Nim-e17237ce9dbf5410623e9d510217e7817bf4fd89.tar.gz |
prepare for the enforcement of `std` prefix (#22873)
follow up https://github.com/nim-lang/Nim/pull/22851
Diffstat (limited to 'compiler/nim.cfg')
-rw-r--r-- | compiler/nim.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/nim.cfg b/compiler/nim.cfg index 040053685..e4425065e 100644 --- a/compiler/nim.cfg +++ b/compiler/nim.cfg @@ -41,6 +41,7 @@ define:useStdoutAsStdmsg @end @if nimHasWarnBareExcept: + warning[BareExcept]:on warningAserror[BareExcept]:on @end @@ -51,3 +52,7 @@ define:useStdoutAsStdmsg warningAsError[ProveInit]:on @end +@if nimHasWarnStdPrefix: + warning[StdPrefix]:on + warningAsError[StdPrefix]:on +@end |