summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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