From d684bc2b012e23e3cc0dfa1195a74abac661b926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 23 Mar 2024 17:12:28 +0100 Subject: Enable -Werror for CI testing --- erebos.cabal | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'erebos.cabal') diff --git a/erebos.cabal b/erebos.cabal index b824e03..f099719 100644 --- a/erebos.cabal +++ b/erebos.cabal @@ -33,12 +33,25 @@ Extra-Source-Files: Flag ice Description: Enable peer discovery with ICE support using pjproject +Flag ci + description: Options for CI testing + default: False + manual: True + source-repository head type: git location: git://erebosprotocol.net/erebos common common - ghc-options: -Wall + ghc-options: + -Wall + -fdefer-typed-holes + + if flag(ci) + ghc-options: + -Werror + -- sometimes needed for backward/forward compatibility: + -Wno-error=unused-imports build-depends: base >=4.13 && <4.19, -- cgit v1.2.3