From e17237ce9dbf5410623e9d510217e7817bf4fd89 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sun, 29 Oct 2023 21:48:11 +0800 Subject: prepare for the enforcement of `std` prefix (#22873) follow up https://github.com/nim-lang/Nim/pull/22851 --- compiler/nim.cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/nim.cfg') 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 -- cgit 1.4.1-2-gfad0