warningAsError is only available on nim >1.6

This commit is contained in:
Tanguy 2022-11-03 12:00:24 +01:00
parent aaf13aeddf
commit aa784a374a
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
1 changed files with 1 additions and 1 deletions

View File

@ -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