summaryrefslogtreecommitdiff
path: root/compiler/HsVersions.h
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-01-13 00:58:32 +0000
committerIan Lynagh <igloo@earth.li>2008-01-13 00:58:32 +0000
commitb9c0562f716770bc09573c5aa892ea0b76570a74 (patch)
tree3887d342403c0eb33266beb7bec17379625d784a /compiler/HsVersions.h
parente4cdbb7b821b1ee6dfb0d7a5ef7275edab6a0520 (diff)
downloadhaskell-b9c0562f716770bc09573c5aa892ea0b76570a74.tar.gz
Fix warnings in utils/Util
Diffstat (limited to 'compiler/HsVersions.h')
-rw-r--r--compiler/HsVersions.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h
index 464bf82029..add588d8b8 100644
--- a/compiler/HsVersions.h
+++ b/compiler/HsVersions.h
@@ -55,9 +55,11 @@ name = Util.global (value) :: IORef (ty); \
#define WARN(e,msg) if False && (e) then pprPanic "WARN" (msg) else
#endif
--- This #ifndef lets us switch off the "import FastString"
--- when compiling FastString itself
-#ifndef COMPILING_FAST_STRING
+-- This conditional lets us switch off the "import FastString"
+-- when compiling FastString itself, or when compiling modules that
+-- don't use it (and would otherwise get warnings, which we treat
+-- as errors). Can we do this more nicely?
+#if !defined(COMPILING_FAST_STRING) && !defined(FAST_STRING_NOT_NEEDED)
--
import qualified FastString as FS
#endif