From e968172cb0c9f4fc653c775faf3ecb661f5b1948 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sat, 12 Oct 2013 23:49:25 +0200 Subject: 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 --- System/Posix/Terminal.hsc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'System/Posix/Terminal.hsc') diff --git a/System/Posix/Terminal.hsc b/System/Posix/Terminal.hsc index 6c41bdc..a7ede2b 100644 --- a/System/Posix/Terminal.hsc +++ b/System/Posix/Terminal.hsc @@ -1,4 +1,3 @@ -{-# OPTIONS_GHC -fno-warn-unused-imports #-} #ifdef __GLASGOW_HASKELL__ {-# LANGUAGE Trustworthy #-} #endif @@ -76,9 +75,11 @@ import Foreign import Foreign.C import System.Posix.Terminal.Common import System.Posix.Types +#ifndef HAVE_OPENPTY import System.Posix.IO +#endif -import System.Posix.Internals (withFilePath, peekFilePath) +import System.Posix.Internals (peekFilePath) -- | @getTerminalName fd@ calls @ttyname@ to obtain a name associated -- with the terminal for @Fd@ @fd@. If @fd@ is associated -- cgit v1.2.3