Skip to content

implicit conversion warnings #12

@adamgreenhall

Description

@adamgreenhall

I'm getting a lot of warning messages from simple Decode:

code:

reader, err := os.Open(fnm)
... 
img, err := goheif.Decode(reader)

setup:

$ go version
go version go1.21.4 darwin/amd64

output:

# github.com/adrium/goheif/libde265
In file included from libde265.cc:2:
In file included from .../go/pkg/mod/github.com/adrium/goheif@v0.0.0-20230113233934-ca402e77a786/libde265/libde265-all.inl:45:
.../go/pkg/mod/github.com/adrium/goheif@v0.0.0-20230113233934-ca402e77a786/libde265/libde265/x86/sse-motion.cc:3530:38: warning: implicit conversion from 'int' to 'short' changes value from 65535 to -1 [-Wconstant-conversion]
....
lots more of this warning ^

conversion to jpg seems to work just fine, so maybe it's just noise - but is there any way to get rid of these warnings?

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