[commit: ghc] master: Sync the list of default warnings with reality; fixes #8060. (7cbce1d)
Ian Lynagh
igloo at ghc.haskell.org
Sun Jul 21 21:14:20 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/7cbce1d2e4f076b2e53bbec93cdbdcf7e541a505
>---------------------------------------------------------------
commit 7cbce1d2e4f076b2e53bbec93cdbdcf7e541a505
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun Jul 21 19:43:40 2013 +0100
Sync the list of default warnings with reality; fixes #8060.
>---------------------------------------------------------------
compiler/main/DynFlags.hs | 19 +++++++++----------
docs/users_guide/using.xml | 13 +++++++++----
2 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index e123684..8b0fad3 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -2858,24 +2858,23 @@ optLevelFlags
standardWarnings :: [WarningFlag]
standardWarnings
- = [ Opt_WarnWarningsDeprecations,
+ = [ Opt_WarnOverlappingPatterns,
+ Opt_WarnWarningsDeprecations,
Opt_WarnDeprecatedFlags,
Opt_WarnUnrecognisedPragmas,
- Opt_WarnOverlappingPatterns,
+ Opt_WarnPointlessPragmas,
+ Opt_WarnDuplicateConstraints,
+ Opt_WarnDuplicateExports,
Opt_WarnMissingFields,
Opt_WarnMissingMethods,
- Opt_WarnDuplicateExports,
Opt_WarnLazyUnliftedBindings,
- Opt_WarnDodgyForeignImports,
Opt_WarnWrongDoBind,
- Opt_WarnAlternativeLayoutRuleTransitional,
- Opt_WarnPointlessPragmas,
Opt_WarnUnsupportedCallingConventions,
- Opt_WarnUnsupportedLlvmVersion,
- Opt_WarnInlineRuleShadowing,
- Opt_WarnDuplicateConstraints,
+ Opt_WarnDodgyForeignImports,
+ Opt_WarnTypeableInstances,
Opt_WarnInlineRuleShadowing,
- Opt_WarnTypeableInstances
+ Opt_WarnAlternativeLayoutRuleTransitional,
+ Opt_WarnUnsupportedLlvmVersion
]
minusWOpts :: [WarningFlag]
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index 3ee7c35..b644dbe 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -962,6 +962,8 @@ test.hs:(5,4)-(6,7):
<option>-fwarn-overlapping-patterns</option>,
<option>-fwarn-warnings-deprecations</option>,
<option>-fwarn-deprecated-flags</option>,
+ <option>-fwarn-unrecognised-pragmas</option>,
+ <option>-fwarn-pointless-pragmas</option>,
<option>-fwarn-duplicate-constraints</option>,
<option>-fwarn-duplicate-exports</option>,
<option>-fwarn-missing-fields</option>,
@@ -969,10 +971,13 @@ test.hs:(5,4)-(6,7):
<option>-fwarn-lazy-unlifted-bindings</option>,
<option>-fwarn-wrong-do-bind</option>,
<option>-fwarn-unsupported-calling-conventions</option>,
- <option>-fwarn-dodgy-foreign-imports</option>, and
- <option>-fwarn-typeable-instances</option>. The following
- flags are
- simple ways to select standard “packages” of warnings:
+ <option>-fwarn-dodgy-foreign-imports</option>,
+ <option>-fwarn-typeable-instances</option>,
+ <option>-fwarn-inline-rule-shadowing</option>,
+ <option>-fwarn-alternative-layout-rule-transitional</option>, and
+ <option>-fwarn-unsupported-llvm-version</option>.
+ The following flags are simple ways to select standard
+ “packages” of warnings:
</para>
<variablelist>
More information about the ghc-commits
mailing list