From 86f652dc9a649e59e643609c287a510a565f5408 Mon Sep 17 00:00:00 2001 From: Zubin Duggal <zubin.duggal@gmail.com> Date: Mon, 4 Dec 2023 18:23:49 +0530 Subject: [PATCH] hadrian: set -Wno-deprecations for directory and Win32 The filepath bump to 1.4.200.1 introduces a deprecation warning. See https://gitlab.haskell.org/ghc/ghc/-/issues/24240 https://github.com/haskell/filepath/pull/206 --- hadrian/src/Settings/Warnings.hs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hadrian/src/Settings/Warnings.hs b/hadrian/src/Settings/Warnings.hs index 858f2a04952c..8a473122c609 100644 --- a/hadrian/src/Settings/Warnings.hs +++ b/hadrian/src/Settings/Warnings.hs @@ -35,7 +35,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" @@ -60,5 +62,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" ] ] ] -- GitLab