Skip to content

Generated code compiles with warning #73

Description

@romand

If you have an empty protobuf message, the generated code compiles with «Defined but not used» warning:

$ cat test.proto
package test;
message Test {}
$ hprotoc test.proto
…
$ tail -n4 Test/Test.hs
instance P'.TextMsg Test where
  textPut msg = Prelude'.return ()
  textGet = Prelude'.return P'.defaultValue
    where%
$ stack build
…
    Defined but not used: ‘msg’
   |
68 |   textPut msg = Prelude'.return ()
   |           ^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions