• Maciej Bielecki's avatar
    Implement fine-grained `-Werror=...` facility · 514acfe4
    Maciej Bielecki authored
    This patch add new options `-Werror=...`, `-Wwarn=...` and
    `-Wno-error=...` (synonym for `-Wwarn=...`).
      - `-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
DynFlags.hs 212 KB