diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-01-25 17:14:49 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-25 17:14:50 +0100 |
commit | f0f63b39783055b2c0c1a8db8c22749afa6d7329 (patch) | |
tree | 7e857b70f06115f8b19ff009eab09ed19e8aab0f /docs | |
parent | 128b678061120270d3d4fe3eccd1b7dc76a8de35 (diff) | |
download | haskell-f0f63b39783055b2c0c1a8db8c22749afa6d7329.tar.gz |
Implement -Wunrecognised-warning-flag
This allows the user to avoid warnings for warning flags that GHC
doesn't recognise. See #11429 for details..
Test Plan: Validate with T11429[abc] tests
Reviewers: austin, hvr
Reviewed By: hvr
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1830
GHC Trac Issues: #11429
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/using-warnings.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst index 4f9a7416d8..10fc9dfb10 100644 --- a/docs/users_guide/using-warnings.rst +++ b/docs/users_guide/using-warnings.rst @@ -31,6 +31,7 @@ generally likely to indicate bugs in your program. These are: * :ghc-flag:`-Winline-rule-shadowing` * :ghc-flag:`-Wunsupported-llvm-version` * :ghc-flag:`-Wtabs` + * :ghc-flag:`-Wunrecognised-warning-flags` The following flags are simple ways to select standard "packages" of warnings: @@ -106,6 +107,13 @@ command line. For backwards compatibility with GHC versions prior to 8.0, all these warnings can still be controlled with ``-f(no-)warn-*`` instead of ``-W(no-)*``. +.. ghc-flag:: -Wunrecognised-warning-flags + + Enables warnings when the compiler encounters a ``-W...`` flag that is not + recognised. + + This warning is on by default. + .. ghc-flag:: -Wtyped-holes Determines whether the compiler reports typed holes warnings. Has no |