Skip to content
Browse files

Fix validate with old bootstrapping compilers

They weren't smart enough to see our GADT pattern matches are complete,
so gave a warning.
  • Loading branch information...
1 parent 48a5c1e commit 2d0046795242a50d810638eafe9d4e47a4ec5cd1 @igfoo igfoo committed Oct 2, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 compiler/cmm/CmmUtils.hs
View
5 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
-----------------------------------------------------------------------------

0 comments on commit 2d00467

Please sign in to comment.
Something went wrong with that request. Please try again.