Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/2d0046795242a50d810638eafe9d4e47a4ec5cd1 >--------------------------------------------------------------- commit 2d0046795242a50d810638eafe9d4e47a4ec5cd1 Author: Ian Lynagh <[email protected]> Date: Sun Oct 2 20:19:47 2011 +0100 Fix validate with old bootstrapping compilers They weren't smart enough to see our GADT pattern matches are complete, so gave a warning. >--------------------------------------------------------------- compiler/cmm/CmmUtils.hs | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/compiler/cmm/CmmUtils.hs b/compiler/cmm/CmmUtils.hs index 0a19b29..1a97c97 100644 --- a/compiler/cmm/CmmUtils.hs +++ b/compiler/cmm/CmmUtils.hs @@ -1,6 +1,11 @@ {-# LANGUAGE GADTs #-} {-# OPTIONS_GHC -fno-warn-deprecations #-} -- Warnings from deprecated blockToNodeList +{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-} +#if __GLASGOW_HASKELL__ >= 703 +-- GHC 7.0.1 improved incomplete pattern warnings with GADTs +{-# OPTIONS_GHC -fwarn-incomplete-patterns #-} +#endif ----------------------------------------------------------------------------- _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
