diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index b11c37e763bf6c90f223c379684ff8e807c562ef..b4f92fbd62bc3e9db97153ed9fbf08eaf95fc874 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -128,9 +128,13 @@ werror = ? notStage0 ? mconcat [ arg "-Werror" - , flag CrossCompiling - ? package unix + -- unix has many unused imports + , package unix ? mconcat [arg "-Wwarn=unused-imports", arg "-Wwarn=unused-top-binds"] + -- semaphore-compat relies on sem_getvalue as provided by unix, which is + -- not implemented on Darwin and therefore throws a deprecation warning + , package semaphoreCompat + ? mconcat [arg "-Wwarn=deprecations"] ] , builder Ghc ? package rts