You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks my projects run with fatal warnings with Wvalue-discard and parseFrom uses builders which produce warning/errors under scala 3 like
[error] 226 | _unknownFields__.parseField(tag, _input__)
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |discarded non-Unit value of type scala.collection.mutable.ReusableBuilder[
[error] | Long & (com.google.protobuf.ByteString & Int), Vector[Long] | (
[error] | Vector[com.google.protobuf.ByteString] | Vector[Int])]
on lines like
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
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
_unknownFields__.parseField(tag, _input__)
() // explicit unit
to the end of these generated builder calls would be the correct fix
The text was updated successfully, but these errors were encountered:
rbscgh
changed the title
Fatal Warning non-discarded value
Fatal Warning discarded non-unit value
Feb 10, 2025
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: