Opened 2 years ago

Closed 9 months ago

#6050 closed bug (fixed)

Documentation for option -Wall and warning -fwarn-unrecognised-pragmas

Reported by: asr Owned by:
Priority: normal Milestone:
Component: Documentation Version: 7.6.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Documentation bug Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The documentation for option -Wall says that the warning -fwarn-unrecognised-pragmas is not enabled by this option. Because this warning is on by default, the documentation is not correct.

Change History (6)

comment:1 Changed 2 years ago by pcapriotti

  • Difficulty set to Unknown
  • Owner set to pcapriotti

Thanks for the report.

I think we should follow what the doc says here and disable -fwarn-unrecognised-pragmas by default.

comment:2 Changed 2 years ago by p.capriotti@…

commit 44098b3dab032a83cc869855de67377f41d82384

Author: Paolo Capriotti <p.capriotti@gmail.com>
Date:   Fri Apr 27 09:40:40 2012 +0100

    Flags documentation: -fwarn-unrecognized-pragmas is enabled by -Wall (#6050)

 docs/users_guide/using.xml |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

comment:3 Changed 2 years ago by pcapriotti

  • Resolution set to fixed
  • Status changed from new to closed

The documentation for -fwarn-unrecognised-pragmas correctly reports that it is enabled by default, so I kept the current behavior and just fixed the inconsistency in the documentation.

Merged as dd20b2f3e1871cc71bfd9fe07aadf60e71c35905.

comment:4 Changed 2 years ago by pcapriotti

  • Milestone set to 7.4.2
  • Type of failure changed from None/Unknown to Documentation bug

comment:5 Changed 9 months ago by asr

  • Milestone changed from 7.4.2 to _|_
  • Owner pcapriotti deleted
  • Resolution fixed deleted
  • Status changed from closed to new
  • Version changed from 7.4.1 to 7.6.3

The -fwarn-unrecognised-pragmas warning is not listed as a default warning in the beginning of http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/options-sanity.html.

comment:6 Changed 9 months ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the report; fixed by

commit 7cbce1d2e4f076b2e53bbec93cdbdcf7e541a505

Author: Ian Lynagh <ian@well-typed.com>
Date:   Sun Jul 21 19:43:40 2013 +0100

    Sync the list of default warnings with reality; fixes #8060.
Note: See TracTickets for help on using tickets.