From aa784a374a6ef1cd20bcb3b34cc3c63a30520e57 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Thu, 3 Nov 2022 12:00:24 +0100 Subject: [PATCH] warningAsError is only available on nim >1.6 --- config.nims | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.nims b/config.nims index 93ecec949..4412457b6 100644 --- a/config.nims +++ b/config.nims @@ -5,12 +5,12 @@ if dirExists("nimbledeps/pkgs"): switch("warning", "CaseTransition:off") switch("warning", "ObservableStores:off") switch("warning", "LockLevel:off") -switch("warningAsError", "UseBase:on") --define:chronosStrictException --styleCheck:usages if (NimMajor, NimMinor) < (1, 6): --styleCheck:hint else: + switch("warningAsError", "UseBase:on") --styleCheck:error # Avoid some rare stack corruption while using exceptions with a SEH-enabled