summary refs log tree commit diff stats
path: root/compiler/nim.cfg
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-12-15 13:45:36 +0800
committerGitHub <noreply@github.com>2022-12-15 06:45:36 +0100
commit91ce8c385d4ccbaab8048cf0393b01cd72282272 (patch)
tree0f9e3b632394e701b48e8afb01fa5fd0d0318d61 /compiler/nim.cfg
parent9a50033d5b09ec3263a53bd2bb4182a8a50e6f4d (diff)
downloadNim-91ce8c385d4ccbaab8048cf0393b01cd72282272.tar.gz
fix #19580; add warning for bare except: clause (#21099)
* fix #19580; add warning for bare except: clause

* fixes some easy ones

* Update doc/manual.md

* fixes docs

* Update changelog.md

* addition

* Apply suggestions from code review

Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>

* Update doc/tut2.md

Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
Diffstat (limited to 'compiler/nim.cfg')
-rw-r--r--compiler/nim.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/nim.cfg b/compiler/nim.cfg
index 20ce3810f..96b47b0e6 100644
--- a/compiler/nim.cfg
+++ b/compiler/nim.cfg
@@ -38,3 +38,7 @@ define:useStdoutAsStdmsg
 @if nimHasWarnUnnamedBreak:
   warningAserror[UnnamedBreak]:on
 @end
+
+@if nimHasWarnBareExcept:
+  warningAserror[BareExcept]:on
+@end