[GHC] #11429: Make unrecognised `-W` flags a warning rather than an error

GHC ghc-devs at haskell.org
Tue Feb 23 22:51:42 UTC 2016


#11429: Make unrecognised `-W` flags a warning rather than an error
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1830,
       Wiki Page:  Design/Warnings   |  Phab:D1942
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"32a9a7f514bdd33ff72a673ade2591e4e815be58/ghc"
 32a9a7f5/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="32a9a7f514bdd33ff72a673ade2591e4e815be58"
 Extend `-Wunrecognised-warning-flag` to cover `-f(no-)warn-*`

 The original implementation for #11429 covers only `-W*` flags. However,
 old packages will continue to use `-f(no-)warn-*` flags, so it seems
 desirable to have `-Wunrecognised-warning-flag` apply to those legacy
 aliases
 as well.

 Reviewed By: bgamari

 Differential Revision: https://phabricator.haskell.org/D1942
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11429#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list