fix build warning on windows
This commit is contained in:
parent
2862eb9d59
commit
6cf9dbb564
1 changed files with 2 additions and 2 deletions
|
@ -145,10 +145,10 @@ probeCrippledFileSystem = do
|
||||||
liftIO $ probeCrippledFileSystem' tmp
|
liftIO $ probeCrippledFileSystem' tmp
|
||||||
|
|
||||||
probeCrippledFileSystem' :: FilePath -> IO Bool
|
probeCrippledFileSystem' :: FilePath -> IO Bool
|
||||||
probeCrippledFileSystem' tmp = do
|
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
return True
|
probeCrippledFileSystem' _ = return True
|
||||||
#else
|
#else
|
||||||
|
probeCrippledFileSystem' tmp = do
|
||||||
let f = tmp </> "gaprobe"
|
let f = tmp </> "gaprobe"
|
||||||
writeFile f ""
|
writeFile f ""
|
||||||
uncrippled <- probe f
|
uncrippled <- probe f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue