Commit 86216e24 authored by Andrey Mokhov's avatar Andrey Mokhov Committed by GitHub

Drop -Werror (#487)

* Drop -Werror from default arguments

See #483, #485.
parent dc8032e2
......@@ -11,7 +11,7 @@ ccBuilderArgs = do
, cIncludeArgs
, builder (Cc CompileC) ? mconcat
[ pure ["-Wall", "-Werror"]
[ arg "-Wall"
, Dynamic `wayUnit` way ? pure [ "-fPIC", "-DDYNAMIC" ]
, arg "-c", arg =<< getInput
, arg "-o", arg =<< getOutput ]
......
......@@ -40,11 +40,11 @@ cArgs = mempty
-- TODO: should be in a different file
cWarnings :: Args
cWarnings =
mconcat [ arg "-Wall"
, flag GccIsClang ? arg "-Wno-unknown-pragmas"
, notM (flag GccIsClang) ? notM windowsHost ? arg "-Werror=unused-but-set-variable"
, notM (flag GccIsClang) ? arg "-Wno-error=inline" ]
cWarnings = mconcat
[ arg "-Wall"
, flag GccIsClang ? arg "-Wno-unknown-pragmas"
, notM (flag GccIsClang) ? notM windowsHost ? arg "-Werror=unused-but-set-variable"
, notM (flag GccIsClang) ? arg "-Wno-error=inline" ]
bootPackageDatabaseArgs :: Args
bootPackageDatabaseArgs = do
......
......@@ -209,7 +209,7 @@ rtsPackageArgs = package rts ? do
-- See @rts/ghc.mk@.
rtsWarnings :: Args
rtsWarnings = mconcat
[ pure ["-Wall", "-Werror"]
[ arg "-Wall"
, arg "-Wextra"
, arg "-Wstrict-prototypes"
, arg "-Wmissing-prototypes"
......
......@@ -10,7 +10,7 @@ import Settings
-- | Default Haskell warning-related arguments.
defaultGhcWarningsArgs :: Args
defaultGhcWarningsArgs = mconcat
[ notStage0 ? pure [ "-Werror", "-Wnoncanonical-monad-instances" ]
[ notStage0 ? arg "-Wnoncanonical-monad-instances"
, (not <$> flag GccIsClang) ? mconcat
[ (not <$> windowsHost ) ? arg "-optc-Werror=unused-but-set-variable"
, arg "-optc-Wno-error=inline" ]
......
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