-
-
Notifications
You must be signed in to change notification settings - Fork 289
Fatal Warning discarded non-unit value #1816
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
Comments
for example here ScalaPB/scalapb-runtime/src/main/scalajvm/com/google/protobuf/wrappers/Int64Value.scala Line 96 in 79df51c
would need to be updated for all XValue types.. wdyt @thesamet ? |
Another workaround: Compile / PB.generate ~= { files =>
files.filter(_.isFile).foreach { file =>
val fileContent = IO.read(file)
val updatedContent = fileContent.replace(
"_unknownFields__.parseField(tag, _input__)",
"_unknownFields__.parseField(tag, _input__): Unit"
)
IO.write(file, updatedContent)
}
files
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey folks my projects run with fatal warnings with Wvalue-discard and parseFrom uses builders which produce warning/errors under scala 3 like
on lines like
i can silence the error like
scalacOptions ++= Seq("-Wconf:id=175:i,any:v")
but id rather not - anyone else faced this before ?
most likely adding something like
to the end of these generated builder calls would be the correct fix
The text was updated successfully, but these errors were encountered: