From 018132d84f95bedb356ca082d1b28a8606a40b4f Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 22 Apr 2020 04:15:01 -0700 Subject: [PATCH] changelog --- changelog.md | 2 ++ compiler/config.nims | 2 ++ 2 files changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index fc409c8aa6aa7..2f63bae1f2739 100644 --- a/changelog.md +++ b/changelog.md @@ -74,6 +74,8 @@ ## Compiler changes - Specific warnings can now be turned into errors via `--warningAsError[X]:on|off`. +- `--warningAsError:on|off` turns all enabled warnings into errors (or back to warnings), +- `--warningAsError:on` is now enabled in compiler/config.nims - The `define` and `undef` pragmas have been de-deprecated. ## Tool changes diff --git a/compiler/config.nims b/compiler/config.nims index b51cbf516627d..d2726362e8fd2 100644 --- a/compiler/config.nims +++ b/compiler/config.nims @@ -1,2 +1,4 @@ when defined nimHasWarningAsErrorAll: + # keep this flag on to prevent future warning regressions, but if unbearable, + # disable specific ones via `switch("warningAsError", "foo:off")` switch("warningAsError", "on")