Skip to content

Commit 25266e6

Browse files
committed
Add -Wunused-packages everywhere, fix warnings.
1 parent 5df4fb0 commit 25266e6

File tree

56 files changed

+257
-1102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+257
-1102
lines changed

cassandra-schema.cql

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,31 +1292,6 @@ CREATE TABLE brig_test.service_team (
12921292
AND read_repair_chance = 0.0
12931293
AND speculative_retry = '99PERCENTILE';
12941294

1295-
CREATE TABLE brig_test.invitation (
1296-
inviter uuid,
1297-
id uuid,
1298-
code ascii,
1299-
created_at timestamp,
1300-
email text,
1301-
name text,
1302-
phone text,
1303-
PRIMARY KEY (inviter, id)
1304-
) WITH CLUSTERING ORDER BY (id ASC)
1305-
AND bloom_filter_fp_chance = 0.01
1306-
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
1307-
AND comment = ''
1308-
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
1309-
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
1310-
AND crc_check_chance = 1.0
1311-
AND dclocal_read_repair_chance = 0.1
1312-
AND default_time_to_live = 0
1313-
AND gc_grace_seconds = 864000
1314-
AND max_index_interval = 2048
1315-
AND memtable_flush_period_in_ms = 0
1316-
AND min_index_interval = 128
1317-
AND read_repair_chance = 0.0
1318-
AND speculative_retry = '99PERCENTILE';
1319-
13201295
CREATE TABLE brig_test.blacklist (
13211296
key text PRIMARY KEY
13221297
) WITH bloom_filter_fp_chance = 0.1
@@ -1667,6 +1642,49 @@ CREATE TABLE brig_test.password_reset (
16671642
AND read_repair_chance = 0.0
16681643
AND speculative_retry = '99PERCENTILE';
16691644

1645+
CREATE TABLE brig_test.federation_remotes (
1646+
domain text PRIMARY KEY,
1647+
search_policy int
1648+
) WITH bloom_filter_fp_chance = 0.01
1649+
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
1650+
AND comment = ''
1651+
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
1652+
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
1653+
AND crc_check_chance = 1.0
1654+
AND dclocal_read_repair_chance = 0.1
1655+
AND default_time_to_live = 0
1656+
AND gc_grace_seconds = 864000
1657+
AND max_index_interval = 2048
1658+
AND memtable_flush_period_in_ms = 0
1659+
AND min_index_interval = 128
1660+
AND read_repair_chance = 0.0
1661+
AND speculative_retry = '99PERCENTILE';
1662+
1663+
CREATE TABLE brig_test.invitation (
1664+
inviter uuid,
1665+
id uuid,
1666+
code ascii,
1667+
created_at timestamp,
1668+
email text,
1669+
name text,
1670+
phone text,
1671+
PRIMARY KEY (inviter, id)
1672+
) WITH CLUSTERING ORDER BY (id ASC)
1673+
AND bloom_filter_fp_chance = 0.01
1674+
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
1675+
AND comment = ''
1676+
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
1677+
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
1678+
AND crc_check_chance = 1.0
1679+
AND dclocal_read_repair_chance = 0.1
1680+
AND default_time_to_live = 0
1681+
AND gc_grace_seconds = 864000
1682+
AND max_index_interval = 2048
1683+
AND memtable_flush_period_in_ms = 0
1684+
AND min_index_interval = 128
1685+
AND read_repair_chance = 0.0
1686+
AND speculative_retry = '99PERCENTILE';
1687+
16701688
CREATE TABLE brig_test.activation_keys (
16711689
key ascii PRIMARY KEY,
16721690
challenge ascii,

libs/api-bot/api-bot.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ library
7373
ghc-options:
7474
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
7575
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
76-
-Wredundant-constraints
76+
-Wredundant-constraints -Wunused-packages
7777

7878
build-depends:
7979
aeson >=2.0.1.0

libs/api-client/api-client.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ library
7272
ghc-options:
7373
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
7474
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
75-
-Wredundant-constraints
75+
-Wredundant-constraints -Wunused-packages
7676

7777
build-depends:
7878
aeson >=2.0.1.0
@@ -97,7 +97,6 @@ library
9797
, transformers >=0.3
9898
, types-common >=0.16
9999
, unliftio
100-
, unordered-containers >=0.2
101100
, uuid >=1.3
102101
, websockets >=0.9
103102
, wire-api >=0.1

libs/bilge/bilge.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ library
7373
ghc-options:
7474
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
7575
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
76-
-Wredundant-constraints
76+
-Wredundant-constraints -Wunused-packages
7777

7878
build-depends:
7979
aeson >=2.0.1.0
@@ -94,7 +94,6 @@ library
9494
, tinylog >=0.9
9595
, transformers-base >=0.4
9696
, types-common >=0.7
97-
, unliftio
9897
, uri-bytestring
9998
, wai
10099
, wai-extra

libs/brig-types/brig-types.cabal

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ library
7272
ghc-options:
7373
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
7474
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
75-
-funbox-strict-fields -Wredundant-constraints
75+
-funbox-strict-fields -Wredundant-constraints -Wunused-packages
7676

7777
build-depends:
7878
aeson >=2.0.1.0
@@ -82,19 +82,15 @@ library
8282
, bytestring-conversion >=0.2
8383
, cassandra-util
8484
, containers >=0.5
85-
, deriving-swagger2 >=0.1.0
8685
, imports
8786
, QuickCheck >=2.9
8887
, schema-profunctor
89-
, servant-server >=0.18.2
90-
, servant-swagger >=1.1.10
9188
, string-conversions
9289
, swagger2 >=2.5
9390
, text >=0.11
9491
, time >=1.1
9592
, tinylog
9693
, types-common >=0.16
97-
, unordered-containers >=0.2
9894
, wire-api
9995

10096
default-language: Haskell2010
@@ -156,26 +152,19 @@ test-suite brig-types-tests
156152
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
157153
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
158154
-threaded -with-rtsopts=-N -Wredundant-constraints
155+
-Wunused-packages
159156

160157
build-depends:
161158
aeson >=2.0.1.0
162-
, attoparsec >=0.10
163159
, base >=4 && <5
164160
, brig-types
165-
, bytestring
166161
, bytestring-conversion >=0.3.1
167-
, containers >=0.5
168162
, imports
169163
, QuickCheck >=2.9
170164
, swagger2 >=2.5
171165
, tasty
172166
, tasty-hunit
173167
, tasty-quickcheck
174-
, text >=0.11
175-
, time >=1.1
176-
, tinylog
177-
, types-common >=0.16
178-
, unordered-containers >=0.2
179168
, wire-api
180169

181170
default-language: Haskell2010

libs/cargohold-types/cargohold-types.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ library
6262
ghc-options:
6363
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
6464
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
65-
-Wredundant-constraints
65+
-Wredundant-constraints -Wunused-packages
6666

6767
build-depends:
6868
base >=4 && <5

libs/cassandra-util/cassandra-util.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,12 @@ library
6666
ghc-options:
6767
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
6868
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
69-
-Wredundant-constraints
69+
-Wredundant-constraints -Wunused-packages
7070

7171
build-depends:
7272
aeson >=2.0.1.0
7373
, base >=4.6 && <5.0
7474
, conduit
75-
, containers
7675
, cql >=3.0.0
7776
, cql-io >=0.14
7877
, cql-io-tinylog

libs/deriving-swagger2/deriving-swagger2.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ library
5959
ghc-options:
6060
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
6161
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
62-
-Wredundant-constraints
62+
-Wredundant-constraints -Wunused-packages
6363

6464
build-depends:
6565
base >=4 && <5

libs/dns-util/dns-util.cabal

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ library
6464
ghc-options:
6565
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
6666
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
67-
-Wredundant-constraints
67+
-Wredundant-constraints -Wunused-packages
6868

6969
build-depends:
7070
base >=4.6 && <5.0
@@ -130,6 +130,7 @@ test-suite spec
130130
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
131131
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
132132
-threaded -rtsopts -with-rtsopts=-N -Wredundant-constraints
133+
-Wunused-packages
133134

134135
build-tool-depends: hspec-discover:hspec-discover
135136
build-depends:
@@ -138,8 +139,5 @@ test-suite spec
138139
, dns-util
139140
, hspec
140141
, imports
141-
, iproute
142-
, polysemy
143-
, random
144142

145143
default-language: Haskell2010

libs/extended/extended.cabal

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ library
7070
ghc-options:
7171
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
7272
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
73-
-Wredundant-constraints
73+
-Wredundant-constraints -Wunused-packages
7474

7575
build-depends:
7676
aeson
@@ -149,29 +149,16 @@ test-suite extended-tests
149149
-O2 -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
150150
-Wpartial-fields -fwarn-tabs -optP-Wno-nonportable-include-path
151151
-threaded -with-rtsopts=-N -Wredundant-constraints
152+
-Wunused-packages
152153

153154
build-tool-depends: hspec-discover:hspec-discover
154155
build-depends:
155156
aeson
156157
, base
157-
, bytestring
158-
, cassandra-util
159-
, containers
160-
, errors
161-
, exceptions
162158
, extended
163-
, extra
164159
, hspec
165-
, http-types
166160
, imports
167-
, metrics-wai
168-
, optparse-applicative
169-
, servant
170-
, servant-server
171-
, servant-swagger
172161
, string-conversions
173162
, temporary
174-
, tinylog
175-
, wai
176163

177164
default-language: Haskell2010

0 commit comments

Comments
 (0)