Skip to content

Commit

Permalink
hadrian: set -Wno-deprecations for directory and Win32
Browse files Browse the repository at this point in the history
The filepath bump to 1.4.200.1 introduces a deprecation warning.

See https://gitlab.haskell.org/ghc/ghc/-/issues/24240
    haskell/filepath#206

(cherry picked from commit 86f652d)
  • Loading branch information
wz1000 committed Dec 15, 2023
1 parent 207f897 commit 1fa23f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hadrian/src/Settings/Warnings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ ghcWarningsArgs = do
, package binary ? pure [ "-Wno-deprecations" ]
, package bytestring ? pure [ "-Wno-inline-rule-shadowing" ]
, package compiler ? pure [ "-Wcpp-undef" ]
, package directory ? pure [ "-Wno-unused-imports" ]
, package directory ? pure [ "-Wno-unused-imports"
, "-Wno-deprecations" -- https://gitlab.haskell.org/ghc/ghc/-/issues/24240
]
, package ghc ? pure [ "-Wcpp-undef"
, "-Wincomplete-uni-patterns"
, "-Wincomplete-record-updates"
Expand All @@ -53,5 +55,7 @@ ghcWarningsArgs = do
, "-Wno-redundant-constraints"
, "-Wno-orphans" ]
, package unix ? pure [ "-Wno-deprecations" ]
, package win32 ? pure [ "-Wno-trustworthy-safe" ]
, package win32 ? pure [ "-Wno-trustworthy-safe"
, "-Wno-deprecations" -- https://gitlab.haskell.org/ghc/ghc/-/issues/24240
]
, package xhtml ? pure [ "-Wno-unused-imports" ] ] ]

0 comments on commit 1fa23f4

Please sign in to comment.