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

Generated Code Produces scalac Warnings #117

Open
xanderdunn opened this issue Sep 30, 2015 · 0 comments
Open

Generated Code Produces scalac Warnings #117

xanderdunn opened this issue Sep 30, 2015 · 0 comments

Comments

@xanderdunn
Copy link

The procedures should have :Unit = and some of the imports seem unnecessary.

/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtoObs.scala:32: Procedure syntax is deprecated. Convert procedure `writeTo` to method by adding `: Unit =`.
    def writeTo(output: com.google.protobuf.CodedOutputStream) {
                                                               ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtoObs.scala:143: Procedure syntax is deprecated. Convert procedure `writeTo` to method by adding `: Unit =`.
    def writeTo(output: com.google.protobuf.CodedOutputStream) {
                                                               ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtoObs.scala:264: Procedure syntax is deprecated. Convert procedure `writeTo` to method by adding `: Unit =`.
    def writeTo(output: com.google.protobuf.CodedOutputStream) {
                                                               ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtoObs.scala:333: Procedure syntax is deprecated. Convert procedure `registerAllExtensions` to method by adding `: Unit =`.
    def registerAllExtensions(registry: com.google.protobuf.ExtensionRegistryLite) {
                                                                                   ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtobufPrediction.scala:23: Procedure syntax is deprecated. Convert procedure `writeTo` to method by adding `: Unit =`.
    def writeTo(output: com.google.protobuf.CodedOutputStream) {
                                                               ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtobufPrediction.scala:99: Procedure syntax is deprecated. Convert procedure `registerAllExtensions` to method by adding `: Unit =`.
    def registerAllExtensions(registry: com.google.protobuf.ExtensionRegistryLite) {
                                                                                   ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtoObs.scala:162: Unused import
        import com.google.protobuf.ExtensionRegistryLite.{getEmptyRegistry => _emptyRegistry}
                                                          ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtoObs.scala:279: Unused import
        import com.google.protobuf.ExtensionRegistryLite.{getEmptyRegistry => _emptyRegistry}
                                                          ^
/local/dev/odin-core/common/build/scalabuff/generated-sources/ai/osaro/data/ProtobufPrediction.scala:40: Unused import
        import com.google.protobuf.ExtensionRegistryLite.{getEmptyRegistry => _emptyRegistry}
                                                          ^

I wonder if we could ignore warnings in these generated files, or if scalabuff could fix the generated code.

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

No branches or pull requests

1 participant