[commit: ghc] master: Implement fine-grained `-Werror=...` facility (514acfe)

git at git.haskell.org git at git.haskell.org
Tue Nov 22 21:29:14 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/514acfe4c4e61941c2fa2e06cff02f6e4424e5e6/ghc

>---------------------------------------------------------------

commit 514acfe4c4e61941c2fa2e06cff02f6e4424e5e6
Author: Maciej Bielecki <zyla at prati.pl>
Date:   Mon Nov 21 17:08:45 2016 -0500

    Implement fine-grained `-Werror=...` facility
    
    This patch add new options `-Werror=...`, `-Wwarn=...` and
    `-Wno-error=...` (synonym for `-Wwarn=...`).
    
    Semantics:
    
      - `-Werror` marks all warnings as fatal, including those that don't
        have a warning flag, and CPP warnings.
      - `-Werror=...` enables a warning and marks it as fatal
      - `-Wwarn=...` marks a warning as non-fatal, but doesn't disable it
    
    Test Plan: validate
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: mpickering, svenpanne, RyanGlScott, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2706
    
    GHC Trac Issues: #11219


>---------------------------------------------------------------

514acfe4c4e61941c2fa2e06cff02f6e4424e5e6
 compiler/main/DynFlags.hs                          | 41 ++++++++++++++++++++--
 compiler/main/ErrUtils.hs                          |  7 ++++
 compiler/main/HscTypes.hs                          |  5 ++-
 docs/users_guide/using-warnings.rst                | 17 +++++++++
 .../tests/warnings/should_compile/Werror01.hs      |  5 +++
 .../tests/warnings/should_compile/Werror01.stderr  |  2 ++
 .../tests/warnings/should_compile/Werror02.hs      |  5 +++
 .../tests/warnings/should_compile/Werror02.stderr  |  2 ++
 testsuite/tests/warnings/should_compile/all.T      |  3 ++
 .../tests/warnings/should_compile/sel_werror.hs    |  3 ++
 testsuite/tests/warnings/should_fail/WerrorFail.hs |  6 ++++
 .../tests/warnings/should_fail/WerrorFail.stderr   |  6 ++++
 testsuite/tests/warnings/should_fail/all.T         |  1 +
 utils/mkUserGuidePart/Options/Warnings.hs          | 10 ++++++
 14 files changed, 108 insertions(+), 5 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 514acfe4c4e61941c2fa2e06cff02f6e4424e5e6


More information about the ghc-commits mailing list