summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-02-27 23:12:11 +0000
committerIan Lynagh <igloo@earth.li>2012-02-27 23:53:54 +0000
commit1eee2746f14fb44a5605017cea90114151c3d47f (patch)
treec0bef3c51bdce5bd8b8d2ae1e42aeb4406eaecca
parent2304a36272531fd20f163b6f378e417dc351aa25 (diff)
downloadhaskell-1eee2746f14fb44a5605017cea90114151c3d47f.tar.gz
Fix validate with tables-next-to-code off
-rw-r--r--compiler/ghci/ByteCodeItbls.lhs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/ghci/ByteCodeItbls.lhs b/compiler/ghci/ByteCodeItbls.lhs
index 2dd1d11ea6..c1d5ed3ca6 100644
--- a/compiler/ghci/ByteCodeItbls.lhs
+++ b/compiler/ghci/ByteCodeItbls.lhs
@@ -6,6 +6,13 @@ ByteCodeItbls: Generate infotables for interpreter-made bytecodes
\begin{code}
{-# OPTIONS -optc-DNON_POSIX_SOURCE #-}
+#ifndef GHCI_TABLES_NEXT_TO_CODE
+{-# OPTIONS_GHC -Wwarn #-}
+-- There are lots of warnings when GHCI_TABLES_NEXT_TO_CODE is off.
+-- It would be nice to fix this properly, but for now we turn -Werror
+-- off.
+#endif
+
module ByteCodeItbls ( ItblEnv, ItblPtr(..), itblCode, mkITbls
, StgInfoTable(..)
) where