From 888131f9873d4f0348b47ce5ce117e196283e6b6 Mon Sep 17 00:00:00 2001 From: ee7 <45465154+ee7@users.noreply.github.com> Date: Thu, 25 May 2023 11:38:01 +0200 Subject: [PATCH] config: disable BareExcept warnings The bump to Nim 1.6.12 caused [1] warnings to appear in the output of `nimble build` and `nimble test`, due to the usage of bare `except` in pkg/jsony and std/unittest. These warnings will be disabled by default in the next Nim release [2], and jsony may resolve the underlying issue [3], but let's disable them explicitly in the meantime. [1] https://github.com/nim-lang/Nim/commit/f01ffbf6f1f6 [2] https://github.com/nim-lang/Nim/commit/69c193e5e2db [3] https://www.github.com/treeform/jsony/pull/58 --- config.nims | 1 + 1 file changed, 1 insertion(+) diff --git a/config.nims b/config.nims index 42a26f27..64eccca9 100644 --- a/config.nims +++ b/config.nims @@ -1,5 +1,6 @@ switch("styleCheck", "error") hint("Name", on) +warning("BareExcept", off) # switch("experimental", "strictEffects") # TODO: re-enable when possible with `parsetoml` switch("experimental", "strictFuncs") switch("define", "nimStrictDelete")