diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2013-10-12 23:49:25 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2013-10-12 23:49:25 +0200 |
commit | e968172cb0c9f4fc653c775faf3ecb661f5b1948 (patch) | |
tree | 14451b438f7aa84a75c4f1f94cceb2bea3959ffc /System/Posix/SharedMem.hsc | |
parent | 7b9044abd826ef1e0f91a1ce5922ed1303e1f2a0 (diff) |
Make `-Wall` clean and drop `-fno-warn-unused-imports`
CPP conditional code sections have been carefully taken into account
while performing this warning cleanup. Most `OPTIONS_GHC` declarations
could be dropped (now only a lonely `{-# OPTIONS_GHC -fno-cse #-}`
remains in `Posix.Signals`).
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'System/Posix/SharedMem.hsc')
-rw-r--r-- | System/Posix/SharedMem.hsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/System/Posix/SharedMem.hsc b/System/Posix/SharedMem.hsc index 8884a3f..1d7a80a 100644 --- a/System/Posix/SharedMem.hsc +++ b/System/Posix/SharedMem.hsc @@ -1,4 +1,3 @@ -{-# OPTIONS_GHC -fno-warn-unused-imports #-} #ifdef __GLASGOW_HASKELL__ {-# LANGUAGE Trustworthy #-} #endif @@ -27,9 +26,12 @@ module System.Posix.SharedMem #include "HsUnix.h" import System.Posix.Types -import System.Posix.Error +#if defined(HAVE_SHM_OPEN) || defined(HAVE_SHM_UNLINK) import Foreign.C +#endif +#ifdef HAVE_SHM_OPEN import Data.Bits +#endif data ShmOpenFlags = ShmOpenFlags { shmReadWrite :: Bool, |