fix unused module import warnings when building on windows

This commit is contained in:
Joey Hess 2019-08-08 12:18:53 -04:00
parent 81ec673f9b
commit 868942e19b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 9 additions and 7 deletions

View file

@ -35,8 +35,10 @@ import Types.FileMatcher
import Git.FilePath
import Types.Remote (RemoteConfig)
import Annex.CheckAttr
import Annex.Magic
import Git.CheckAttr (unspecifiedAttr)
#ifdef WITH_MAGICMIME
import Annex.Magic
#endif
import Data.Either
import qualified Data.Set as S

View file

@ -22,10 +22,12 @@ import Assistant.Install.AutoStart
import Assistant.Install.Menu
import System.Environment
#ifndef mingw32_HOST_OS
import System.PosixCompat.User
import Data.Maybe
import Control.Applicative
import Prelude
#endif
systemwideInstall :: IO Bool
#ifndef mingw32_HOST_OS

View file

@ -10,7 +10,6 @@
module Utility.Env.Set where
#ifdef mingw32_HOST_OS
import qualified System.Environment as E
import qualified System.SetEnv
import Utility.Env
#else

View file

@ -16,10 +16,10 @@ import System.Posix.Types
import System.Posix.IO
import Utility.Env
import Utility.Env.Set
import Utility.FileMode
#else
import Utility.Tmp
#endif
import Utility.FileMode
import Utility.Format (decode_c)
import Control.Concurrent

View file

@ -48,7 +48,6 @@ import Data.Time.Clock.POSIX
#ifdef mingw32_HOST_OS
import Data.Word (Word64)
import System.Directory
#else
import System.Posix.Files
#endif

View file

@ -11,13 +11,13 @@
module Utility.Path.Max where
import System.FilePath
import Data.List
import Control.Applicative
import Prelude
#ifndef mingw32_HOST_OS
import Utility.Exception
import System.Posix.Files
import Data.List
import Control.Applicative
import Prelude
#endif
{- Maximum size to use for a file in a specified directory.