[Git][ghc/ghc][wip/backports-8.10] Disable deprecation warnings in Cabal build

Ben Gamari gitlab at gitlab.haskell.org
Mon Dec 14 02:58:31 UTC 2020



Ben Gamari pushed to branch wip/backports-8.10 at Glasgow Haskell Compiler / GHC


Commits:
46d078b5 by Ben Gamari at 2020-12-13T21:58:00-05:00
Disable deprecation warnings in Cabal build

- - - - -


2 changed files:

- hadrian/src/Settings/Warnings.hs
- mk/warnings.mk


Changes:

=====================================
hadrian/src/Settings/Warnings.hs
=====================================
@@ -29,6 +29,7 @@ ghcWarningsArgs = do
         , package base         ? pure [ "-Wno-trustworthy-safe" ]
         , package binary       ? pure [ "-Wno-deprecations" ]
         , package bytestring   ? pure [ "-Wno-inline-rule-shadowing" ]
+        , package cabal        ? pure [ "-Wno-error=deprecations" ]
         , package compiler     ? pure [ "-Wcpp-undef" ]
         , package directory    ? pure [ "-Wno-unused-imports" ]
         , package ghc          ? pure [ "-Wcpp-undef" ]


=====================================
mk/warnings.mk
=====================================
@@ -80,6 +80,8 @@ libraries/haskeline_dist-install_EXTRA_HC_OPTS += -Wno-unused-imports
 libraries/haskeline_dist-install_EXTRA_HC_OPTS += -Wno-redundant-constraints
 libraries/haskeline_dist-install_EXTRA_HC_OPTS += -Wno-simplifiable-class-constraints
 
+# Due to deprecation warning
+libraries/Cabal_dist-install_EXTRA_HC_OPTS += -Wno-error=deprecations
 
 # temporarily turn off unused-imports warnings for pretty
 libraries/pretty_dist-install_EXTRA_HC_OPTS += -Wno-unused-imports



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/46d078b5e8c15ac8433b718dc787d4a48b492242

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/46d078b5e8c15ac8433b718dc787d4a48b492242
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/20201213/2931f986/attachment.html>


More information about the ghc-commits mailing list