Fix building with old compilers which don't understand -fno-warn-orphans
[ghc-hetmet.git] / compiler / cmm / Cmm.hs
index 22479ca..24542e1 100644 (file)
@@ -1,4 +1,7 @@
-{-# OPTIONS -Wall -fno-warn-name-shadowing -fno-warn-orphans #-}
+{-# OPTIONS -fno-warn-name-shadowing -w #-}
+-- We'd like to use -fno-warn-orphans rather than -w, but old compilers
+-- don't understand it so building stage1 fails.
+
 -----------------------------------------------------------------------------
 --
 -- Cmm data types
@@ -7,13 +10,6 @@
 --
 -----------------------------------------------------------------------------
 
-{-# OPTIONS -w #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and fix
--- any warnings in the module. See
---     http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
--- for details
-
 module Cmm ( 
        GenCmm(..), Cmm, RawCmm,
        GenCmmTop(..), CmmTop, RawCmmTop,