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/Files | |
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/Files')
-rw-r--r-- | System/Posix/Files/Common.hsc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/System/Posix/Files/Common.hsc b/System/Posix/Files/Common.hsc index 75c7fde..22899de 100644 --- a/System/Posix/Files/Common.hsc +++ b/System/Posix/Files/Common.hsc @@ -1,4 +1,3 @@ -{-# OPTIONS_GHC -fno-warn-unused-imports #-} #ifdef __GLASGOW_HASKELL__ {-# LANGUAGE Trustworthy #-} #endif @@ -81,17 +80,22 @@ module System.Posix.Files.Common ( #endif ) where -import System.Posix.Error import System.Posix.Types import System.IO.Unsafe import Data.Bits +#if defined(HAVE_STRUCT_STAT_ST_CTIM) || \ + defined(HAVE_STRUCT_STAT_ST_MTIM) || \ + defined(HAVE_STRUCT_STAT_ST_ATIM) import Data.Int -import Data.Time.Clock.POSIX import Data.Ratio +#endif +import Data.Time.Clock.POSIX import System.Posix.Internals import Foreign.C import Foreign.ForeignPtr -import Foreign.Marshal +#if defined(HAVE_FUTIMES) || defined(HAVE_FUTIMENS) +import Foreign.Marshal (withArray) +#endif import Foreign.Ptr import Foreign.Storable |