X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FMain.hs;h=df50f1c8a9b2ebde2d4b461737b29a2823b9d54a;hb=89e1f4af2244dc4dbf5b3de99610d4ae8e667de2;hp=2fec73836a6138d1cbdb5598f1c24d1530175c9e;hpb=17de8ea2c9bc3bd3485737a3514e9fa8bcaec4f7;p=ghc-hetmet.git diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 2fec738..df50f1c 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -1,6 +1,6 @@ {-# OPTIONS -fno-warn-incomplete-patterns #-} ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.53 2001/02/14 11:36:07 sewardj Exp $ +-- $Id: Main.hs,v 1.54 2001/02/20 11:04:42 simonmar Exp $ -- -- GHC Driver program -- @@ -196,15 +196,6 @@ main = static_opts <- buildStaticHscOpts writeIORef v_Static_hsc_opts static_opts - -- warnings - warn_level <- readIORef v_Warning_opt - - let warn_opts = case warn_level of - W_default -> standardWarnings - W_ -> minusWOpts - W_all -> minusWallOpts - W_not -> [] - -- build the default DynFlags (these may be adjusted on a per -- module basis by OPTIONS pragmas and settings in the interpreter). @@ -237,8 +228,7 @@ main = } -- the rest of the arguments are "dynamic" - srcs <- processArgs dynamic_flags (way_non_static ++ - non_static ++ warn_opts) [] + srcs <- processArgs dynamic_flags (way_non_static ++ non_static) [] -- save the "initial DynFlags" away init_dyn_flags <- readIORef v_DynFlags writeIORef v_InitDynFlags init_dyn_flags