Commit 7cbce1d2 authored by ian@well-typed.com's avatar ian@well-typed.com

Sync the list of default warnings with reality; fixes #8060.

parent 95e6865e
......@@ -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]
......
......@@ -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 &ldquo;packages&rdquo; 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
&ldquo;packages&rdquo; of warnings:
</para>
<variablelist>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment