From 3ed54797c2824e1ad5cbe8015401e9e648bf122a Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 6 Sep 2007 19:57:37 +0000 Subject: [PATCH] Fix building with old compilers which don't understand -fno-warn-orphans --- compiler/cmm/Cmm.hs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/compiler/cmm/Cmm.hs b/compiler/cmm/Cmm.hs index 22479ca..24542e1 100644 --- a/compiler/cmm/Cmm.hs +++ b/compiler/cmm/Cmm.hs @@ -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, -- 1.7.10.4