[Git][ghc/ghc][wip/rts-warnings] Fix unix on Darwin

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Thu Jan 12 03:35:03 UTC 2023



Ben Gamari pushed to branch wip/rts-warnings at Glasgow Haskell Compiler / GHC


Commits:
953205ec by Ben Gamari at 2023-01-12T03:35:02+00:00
Fix unix on Darwin
- - - - -


1 changed file:

- hadrian/src/Flavour.hs


Changes:

=====================================
hadrian/src/Flavour.hs
=====================================
@@ -120,17 +120,18 @@ addArgs args' fl = fl { args = args fl <> args' }
 -- from warnings.
 werror :: Flavour -> Flavour
 werror =
-  addArgs $ mconcat
-    [ builder Ghc
-        ? notStage0
-        ? mconcat
-          [ arg "-Werror"
-          , arg "-optc-Werror"
-          , arg "-optc-Wno-error=unknown-pragmas"
-          , flag CrossCompiling
-              ? package unix
-              ? mconcat [arg "-Wwarn=unused-imports", arg "-Wwarn=unused-top-binds"]
-          ]
+  addArgs $ builder Ghc ? notStage0 ? mconcat
+    [ arg "-Werror"
+    , arg "-optc-Werror"
+    , arg "-optc-Wno-error=unknown-pragmas"
+    , flag CrossCompiling
+      ? package unix
+      ? mconcat
+        [ arg "-Wwarn=unused-imports"
+        , arg "-Wwarn=unused-top-binds"
+          -- unix tends to exposed deprecated interfaces
+        , arg "-Wwarn=deprecated-declarations"
+        ]
     ]
 
 -- | Build C and Haskell objects with debugging information.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/953205eca7e8cd7c03eaeaf890d6b731b76e1539

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/953205eca7e8cd7c03eaeaf890d6b731b76e1539
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/20230111/bfa98d5a/attachment-0001.html>


More information about the ghc-commits mailing list