[Git][ghc/ghc][wip/tracing-rework] hadrian: Ignore warnings in unix and semaphore-compat
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Wed Jun 28 20:10:58 UTC 2023
Ben Gamari pushed to branch wip/tracing-rework at Glasgow Haskell Compiler / GHC
Commits:
45d0d4ef by Ben Gamari at 2023-06-28T16:10:51-04:00
hadrian: Ignore warnings in unix and semaphore-compat
- - - - -
1 changed file:
- hadrian/src/Flavour.hs
Changes:
=====================================
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
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/45d0d4efd21a63bdf884e406a3e275b9a2bf6070
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/45d0d4efd21a63bdf884e406a3e275b9a2bf6070
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230628/edb63bee/attachment.html>
More information about the ghc-commits
mailing list