sss-go icon indicating copy to clipboard operation
sss-go copied to clipboard

warning: non-void function does not return a value [-Wreturn-type]

Open minias opened this issue 2 years ago • 0 comments

When building in high language, an error occurred as below.

$ go version
$ go version go1.20.3 darwin/arm64
$ go build
# github.com/dsprenkels/sss-go
../../../../go/pkg/mod/github.com/dsprenkels/[email protected]/sss.go:34:2: warning: non-void function does not return a value [-Wreturn-type]

https://github.com/dsprenkels/sss-go/blob/780fb2c6241e36b49c29ac44653cdc7f7dcee5b3/sss.go#L31

I fixed some of the contents of the cgo in your code. https://github.com/minias/sss-go

// int sss_combine_shares_go_wrapper(uint8_t *data, sss_Share *shares, uint8_t k)
// {
//     return sss_combine_shares(data, shares, k);
// }

minias avatar Jan 16 '24 10:01 minias