[GHC] #12379: WARN pragma gives warning `warning: [-Wdeprecations]'

GHC ghc-devs at haskell.org
Thu Jul 21 13:54:25 UTC 2016


#12379: WARN pragma gives warning `warning: [-Wdeprecations]'
-------------------------------------+-------------------------------------
        Reporter:  zilinc            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Documentation     |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Documentation     |  (amd64)
  bug                                |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * failure:  Incorrect warning at compile-time => Documentation bug
 * component:  Compiler => Documentation


Comment:

 This commit explains it:

 27abb1f52b023d7bc8a796e22e5e7ef281df0fcb
 {{{
 Author: Simon Marlow <marlowsd at gmail.com>
 Date:   Tue Aug 12 14:16:06 2008 +0000

     put back -fwarn-depcrecations
     It was replaced by -fwarn-warnings-deprecations, but I think we want
     to keep it for backwards compatibility.  I'm not sure we want to
     deprecate it either...
 }}}

 So both flags exist, and the warning message happens to pick the shorter
 version.

 Just a documentation issue.

 For a newcomer: update `docs/users_guide/using-warnings.rst` and
 `utils/mkUserGuidePart/Options/Warnings.hs`.

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


More information about the ghc-tickets mailing list