[commit: ghc] master: Add `--fwarn-trustworthy-safe` to `-Wall` again. (3359133)

git at git.haskell.org git at git.haskell.org
Mon Nov 24 18:02:29 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/33591335f4bbbe350106276bba4b6cc61f1dda06/ghc

>---------------------------------------------------------------

commit 33591335f4bbbe350106276bba4b6cc61f1dda06
Author: David Terei <code at davidterei.com>
Date:   Mon Nov 24 03:34:18 2014 -0500

    Add `--fwarn-trustworthy-safe` to `-Wall` again.
    
    This redoes part of 475dd93efa which was reversed in 452d6aa95b after
    breaking validate on windows.


>---------------------------------------------------------------

33591335f4bbbe350106276bba4b6cc61f1dda06
 compiler/main/DynFlags.hs | 3 ++-
 mk/validate-settings.mk   | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 5e3bda9..d6f620f 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -3214,7 +3214,8 @@ minusWallOpts
         Opt_WarnMissingSigs,
         Opt_WarnHiShadows,
         Opt_WarnOrphans,
-        Opt_WarnUnusedDoBind
+        Opt_WarnUnusedDoBind,
+        Opt_WarnTrustworthySafe
       ]
 
 enableGlasgowExts :: DynP ()
diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index e06135b..6a85b79 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -169,7 +169,9 @@ libraries/array_dist-install_EXTRA_HC_OPTS += -fno-warn-warnings-deprecations
 # Turn of trustworthy-safe warning
 libraries/base_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe
 libraries/ghc-prim_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe
+libraries/process_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe
 libraries/unix_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe
+libraries/Win32_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe
 
 # Temporarely disable inline rule shadowing warning
 libraries/bytestring_dist-install_EXTRA_HC_OPTS += -fno-warn-inline-rule-shadowing



More information about the ghc-commits mailing list