[Git][ghc/ghc][wip/T25281] Add -Wno-incomplete-recored-selectors to cabal build

Simon Peyton Jones (@simonpj) gitlab at gitlab.haskell.org
Tue Oct 1 14:25:42 UTC 2024



Simon Peyton Jones pushed to branch wip/T25281 at Glasgow Haskell Compiler / GHC


Commits:
b36088e3 by Simon Peyton Jones at 2024-10-01T15:24:44+01:00
Add -Wno-incomplete-recored-selectors to cabal build

This change is a temporary fix, until
   https://github.com/haskell/cabal/issues/10402
is addressed

- - - - -


1 changed file:

- hadrian/src/Settings/Warnings.hs


Changes:

=====================================
hadrian/src/Settings/Warnings.hs
=====================================
@@ -71,7 +71,12 @@ ghcWarningsArgs = do
         , package stm          ? pure [ "-Wno-deriving-typeable" ]
         , package osString     ? pure [ "-Wno-deriving-typeable" ]
         , package parsec       ? pure [ "-Wno-deriving-typeable" ]
-        , package cabal        ? pure [ "-Wno-deriving-typeable" ]
+
+        , package cabal        ? pure [ "-Wno-deriving-typeable", "-Wno-incomplete-record-selectors" ]
+             -- The -Wno-incomplete-record-selectors is due to
+             -- https://github.com/haskell/cabal/issues/10402
+             -- If that ticket is fixed, bwe can remove the flag again
+
         , package cabalSyntax  ? pure [ "-Wno-deriving-typeable" ]
         , package time         ? pure [ "-Wno-deriving-typeable" ]
         , package transformers ? pure [ "-Wno-unused-matches"



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b36088e39ab3a970071a21c8ecea44ed1a6f1e98
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/20241001/060e7fab/attachment.html>


More information about the ghc-commits mailing list