Skip to content

Commit 6dc25ad

Browse files
committed
Fix a bunch of compilation warnings
1 parent 98db394 commit 6dc25ad

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

modules/core/jvm/src/main/scala/SSLPlatform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ package skunk
66

77
import cats._
88
import cats.effect.Resource
9-
import java.nio.file.Path
109
import java.security.KeyStore
1110
import javax.net.ssl.SSLContext
11+
import fs2.io.file.Path
1212
import fs2.io.net.Network
1313
import fs2.io.net.tls.TLSContext
1414

modules/core/shared/src/main/scala-3/syntax/StringContextOps.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ object StringContextOps {
4949

5050
def yell(s: String) = println(s"${Console.RED}$s${Console.RESET}")
5151

52+
@annotation.nowarn
5253
def sqlImpl(sc: Expr[StringContext], argsExpr: Expr[Seq[Any]])(using qc: Quotes): Expr[Any] = {
5354
import qc.reflect.report
5455

modules/tests/jvm/src/test/scala/skunk/LargeResponseTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class LargeResponseTest extends SkunkTest {
1616
for {
1717
res <- s.stream(query)(Void, 64000).compile.drain.timed
1818
// res <- s.execute(query).timed
19-
(duration, r) = res
19+
(duration, _) = res
2020
_ = println(s"Took ${duration.toMillis} to stream 500K rows to /dev/null")
2121
} yield "ok"
2222
}

modules/tests/shared/src/test/scala/ChannelTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ChannelTest extends SkunkTest {
3333
_ <- IO.sleep(1.second) // sigh
3434
_ <- data.traverse_(ch.notify)
3535
o <- f.join
36-
Succeeded(fa) = o
36+
Succeeded(fa) = o: @unchecked
3737
d <- fa
3838
_ <- assert(s"channel data $d $data", data.endsWith(d)) // we may miss the first few
3939
} yield "ok"
@@ -57,4 +57,4 @@ class ChannelTest extends SkunkTest {
5757
}
5858

5959

60-
}
60+
}

modules/tests/shared/src/test/scala/PoolTest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ class PoolTest extends FTest {
257257
} .handleErrorWith {
258258
// cleanup here may raise an exception, so we need to handle that
259259
case FreeFailure() => IO.unit
260+
case t => throw t
260261
}
261262
}
262263

@@ -273,6 +274,7 @@ class PoolTest extends FTest {
273274
IO.unit
274275
} handleErrorWith {
275276
case ResetFailure() => IO.unit
277+
case t => throw t
276278
}
277279
}
278280
}

modules/tests/shared/src/test/scala/codec/NumericCodecTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ class NumericCodecTest extends CodecTest {
3838

3939
{
4040
val arr1 = Arr.fromFoldable(List[Short](-1,-2,-3,-4,5,6,7,8))
41-
val Some(arr2) = arr1.reshape(2,1,4)
41+
val Some(arr2) = arr1.reshape(2,1,4): @unchecked
4242
roundtripTest(_int2)(Arr.empty, arr1, arr2)
4343
}
4444

4545
{
4646
val arr1 = Arr.fromFoldable(List(-1,-2,-3,-4,5,6,7,8))
47-
val Some(arr2) = arr1.reshape(2,1,4)
47+
val Some(arr2) = arr1.reshape(2,1,4): @unchecked
4848
roundtripTest(_int4)(Arr.empty, arr1, arr2)
4949
}
5050

5151
{
5252
val arr1 = Arr.fromFoldable(List[Long](-1,-2,-3,-4,5,6,7,8))
53-
val Some(arr2) = arr1.reshape(2,1,4)
53+
val Some(arr2) = arr1.reshape(2,1,4): @unchecked
5454
roundtripTest(_int8)(Arr.empty, arr1, arr2)
5555
}
5656

modules/tests/shared/src/test/scala/codec/TextCodecTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TextCodecTest extends CodecTest {
3939
roundtripTest(varchar)("\n")
4040

4141
// array types
42-
val Some(arr) = Arr("", "ab", "föf", "🔥 and 🌈", "مرحبا", "שלום", "你好", "';--'", "ab\t\b\\cd", "ab\"cd").reshape(5,1,2)
42+
val Some(arr) = Arr("", "ab", "föf", "🔥 and 🌈", "مرحبا", "שלום", "你好", "';--'", "ab\t\b\\cd", "ab\"cd").reshape(5,1,2): @unchecked
4343
roundtripTest(_varchar)(Arr.empty, arr)
4444
roundtripTest(_bpchar )(Arr.empty, arr)
4545
roundtripTest(_text )(Arr.empty, arr)

0 commit comments

Comments
 (0)