Skip to content

Commit

Permalink
Added -Wunused-packages to cabal files
Browse files Browse the repository at this point in the history
  • Loading branch information
coot authored and jasagredo committed Dec 2, 2022
1 parent e50274c commit 16ff510
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 10 deletions.
23 changes: 18 additions & 5 deletions network-mux/network-mux.cabal
Expand Up @@ -40,6 +40,7 @@ common demo-deps
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wunused-packages

library
build-depends: base >=4.9 && <4.17,
Expand Down Expand Up @@ -68,8 +69,6 @@ library
build-depends: Win32 >= 2.5.4.1 && <3.0,
Win32-network >=0.1 && <0.2

ghc-options: -Wall
-Wno-unticked-promoted-constructors
if flag(asserts)
ghc-options: -fno-ignore-asserts

Expand Down Expand Up @@ -106,12 +105,13 @@ library
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wno-unticked-promoted-constructors
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages

test-suite test
type: exitcode-stdio-1.0
Expand Down Expand Up @@ -154,6 +154,7 @@ test-suite test
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages
if flag(ipv6)
cpp-options: -DOUROBOROS_NETWORK_IPV6

Expand Down Expand Up @@ -198,3 +199,15 @@ executable cardano-ping
buildable: False
else
buildable: True

ghc-options: -threaded
-Wall
-fno-ignore-asserts
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages
10 changes: 10 additions & 0 deletions ouroboros-consensus-diffusion/ouroboros-consensus-diffusion.cabal
Expand Up @@ -93,3 +93,13 @@ library
, ouroboros-network-protocols ^>=0.2
, ouroboros-network ^>=0.2
, ouroboros-consensus ^>=0.1

ghc-options: -Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
1 change: 1 addition & 0 deletions ouroboros-network-api/ouroboros-network-api.cabal
Expand Up @@ -77,5 +77,6 @@ library
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wunused-packages
if flag(asserts)
ghc-options: -fno-ignore-asserts
5 changes: 5 additions & 0 deletions ouroboros-network-framework/ouroboros-network-framework.cabal
Expand Up @@ -116,6 +116,7 @@ library
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages

library testlib
visibility: public
Expand Down Expand Up @@ -146,6 +147,7 @@ library testlib
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wunused-packages

test-suite test
type: exitcode-stdio-1.0
Expand Down Expand Up @@ -209,6 +211,7 @@ test-suite test
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages

if flag(ipv6)
cpp-options: -DOUROBOROS_NETWORK_IPV6
Expand Down Expand Up @@ -238,6 +241,7 @@ executable demo-ping-pong
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages

executable demo-connection-manager
hs-source-dirs: demo test
Expand Down Expand Up @@ -268,3 +272,4 @@ executable demo-connection-manager
-Widentities
-Wredundant-constraints
-Wno-unticked-promoted-constructors
-Wunused-packages
Expand Up @@ -79,10 +79,7 @@ library

ghc-options: -Wall
-Wno-unticked-promoted-constructors

ghc-options: -Wall
-Wno-unticked-promoted-constructors
-fno-ignore-asserts
-Wunused-packages

test-suite test
type: exitcode-stdio-1.0
Expand All @@ -101,6 +98,9 @@ test-suite test
ouroboros-network-mock,
ouroboros-network-testing,
ouroboros-network-protocols-test

ghc-options: -Wall
-Wunused-packages

test-suite cddl
type: exitcode-stdio-1.0
Expand Down Expand Up @@ -138,5 +138,6 @@ test-suite cddl

ghc-options: -Wall
-Wno-unticked-promoted-constructors
-fno-ignore-asserts
-Wcompat
-Wunused-packages

Expand Up @@ -109,6 +109,7 @@ library
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wunused-packages
if flag(asserts)
ghc-options: -fno-ignore-asserts

Expand Down
1 change: 1 addition & 0 deletions ouroboros-network/ouroboros-network.cabal
Expand Up @@ -140,6 +140,7 @@ library
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wunused-packages
if flag(asserts)
ghc-options: -fno-ignore-asserts

Expand Down

0 comments on commit 16ff510

Please sign in to comment.