[commit: ghc] wip/T13861: suppress some warnings for now and enable the optsn (671e97e)

git at git.haskell.org git at git.haskell.org
Fri Dec 22 00:02:42 UTC 2017


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

On branch  : wip/T13861
Link       : http://ghc.haskell.org/trac/ghc/changeset/671e97e3b2ec6704fbe66186c01f2f7c5a84f7d4/ghc

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

commit 671e97e3b2ec6704fbe66186c01f2f7c5a84f7d4
Author: Gabor Greif <ggreif at gmail.com>
Date:   Sun Jul 30 17:47:09 2017 +0200

    suppress some warnings for now and enable the optsn


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

671e97e3b2ec6704fbe66186c01f2f7c5a84f7d4
 compiler/simplStg/StgCse.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/simplStg/StgCse.hs b/compiler/simplStg/StgCse.hs
index 1a3d507..85695da 100644
--- a/compiler/simplStg/StgCse.hs
+++ b/compiler/simplStg/StgCse.hs
@@ -1,4 +1,5 @@
 {-# LANGUAGE TypeFamilies, LambdaCase #-}
+{-# OPTIONS_GHC -Wno-unused-matches -Wno-missing-signatures #-}
 
 {-|
 Note [CSE for Stg]
@@ -115,7 +116,7 @@ newtype ConAppMap a = CAM { un_cam :: DNameEnv (ListMap StgArgMap a) }
 newtype LaxDataCon = Lax DataCon
 
 instance NamedThing LaxDataCon where
-  getName (Lax dc) | False && isVanillaDataCon dc && not hasStrict && not unpacked = mkFCallName uniq "" -- FIXME: is there a better way?
+  getName (Lax dc) | isVanillaDataCon dc && not hasStrict && not unpacked = mkFCallName uniq "" -- FIXME: is there a better way?
     where uniq = mkUniqueGrimily . negate $ dataConTag dc * 1048576 + length (dataConOrigArgTys dc) -- FIXME
           hasStrict = any (\case HsLazy -> False; _ -> True) (dataConImplBangs dc)
           unpacked = isUnboxedTupleCon dc || isUnboxedSumCon dc



More information about the ghc-commits mailing list