[commit: packages/unix] master: Kill `-fwarn-unused-imports`-induced silliness (03632e3)

git at git.haskell.org git at git.haskell.org
Tue Apr 19 21:37:14 UTC 2016


Repository : ssh://git@git.haskell.org/unix

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/03632e32eb1d2e8f5d41ddc0f81bc6eff6a343c9/unix

>---------------------------------------------------------------

commit 03632e32eb1d2e8f5d41ddc0f81bc6eff6a343c9
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Mon Nov 16 19:37:56 2015 +0100

    Kill `-fwarn-unused-imports`-induced silliness
    
    This all started in e968172cb0c9f4fc653c775faf3ecb661f5b1948 which tried
    to get rid of redundant import warnings. But we should rather err on
    having to tolerate a few warnings on exotic configurations rather than
    breaking a build...
    
    This hopefully fixes #36


>---------------------------------------------------------------

03632e32eb1d2e8f5d41ddc0f81bc6eff6a343c9
 System/Posix/Files/Common.hsc | 7 -------
 changelog.md                  | 3 +++
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/System/Posix/Files/Common.hsc b/System/Posix/Files/Common.hsc
index 586b417..963008f 100644
--- a/System/Posix/Files/Common.hsc
+++ b/System/Posix/Files/Common.hsc
@@ -83,15 +83,8 @@ module System.Posix.Files.Common (
 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) || \
-    defined(HAVE_STRUCT_STAT_ST_ATIMESPEC) || \
-    defined(HAVE_STRUCT_STAT_ST_MTIMESPEC) || \
-    defined(HAVE_STRUCT_STAT_ST_CTIMESPEC)
 import Data.Int
 import Data.Ratio
-#endif
 import Data.Time.Clock.POSIX (POSIXTime)
 import System.Posix.Internals
 import Foreign.C
diff --git a/changelog.md b/changelog.md
index 0f69383..e5733c2 100644
--- a/changelog.md
+++ b/changelog.md
@@ -6,6 +6,9 @@
 
   * Don't assume existence of termios constants beyond `B38400`
 
+  * Turn build error into compile warnings for exotic `struct stat`
+    configurations (GHC #8859).
+
 ## 2.7.1.0  *Dec 2014*
 
   * Bundled with GHC 7.10.1



More information about the ghc-commits mailing list