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

Ben Gamari gitlab at gitlab.haskell.org
Mon Dec 14 04:29:17 UTC 2020



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


Commits:
cd3806ae by Ben Gamari at 2020-12-13T23:28:54-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
=====================================
@@ -51,4 +51,7 @@ ghcWarningsArgs = do
                                       , "-Wno-redundant-constraints"
                                       , "-Wno-orphans" ]
         , package win32        ? pure [ "-Wno-trustworthy-safe" ]
-        , package xhtml        ? pure [ "-Wno-unused-imports" ] ] ]
+        , package xhtml        ? pure [ "-Wno-unused-imports" ] ]
+        , mconcat
+        [ package cabal        ? pure [ "-Wno-error=deprecations" ] ]
+        ]


=====================================
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/cd3806aea179f93b06aa8e3154135e4939032330

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cd3806aea179f93b06aa8e3154135e4939032330
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/2ef8c2a0/attachment-0001.html>


More information about the ghc-commits mailing list