Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build warnings #2769

Merged
merged 10 commits into from
Dec 25, 2021
Merged

Fix build warnings #2769

merged 10 commits into from
Dec 25, 2021

Conversation

mpilquist
Copy link
Member

No description provided.

@@ -305,7 +305,7 @@ private[fs2] trait ioplatform {
/** Stream of bytes read asynchronously from standard input.
* Takes a dummy `Int` parameter for source-compatibility with JVM.
*/
@nowarn("cat=unused")
@nowarn // ("cat=unused") - unsupported category on scala 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@nowarn // ("cat=unused") - unsupported category on scala 3
@nowarn("msg=never used")

h/t @bplommer when we setup Scala 3 fatal warnings for http4s

@mpilquist
Copy link
Member Author

The test failures are a bit worrisome... I assume the cause is the change to ChunkGenerators, replacing a buffer instance with an array instance, but why would that be slower?

@mpilquist
Copy link
Member Author

Oh hm, I bet it's actually this change:

ThisBuild / Test / javaOptions ++= Seq(
   "-Dscala.concurrent.context.minThreads=8",
   "-Dscala.concurrent.context.numThreads=8",
   "-Dscala.concurrent.context.maxThreads=8"
 )

@mpilquist
Copy link
Member Author

OK this should be good to go now

@mpilquist mpilquist merged commit 3e1fd66 into typelevel:main Dec 25, 2021
@mpilquist mpilquist deleted the topic/fix-warnings branch December 25, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants