Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Apr 22, 2020
1 parent 8332007 commit 018132d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions compiler/config.nims
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 018132d

Please sign in to comment.