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

Warning in picture_csp_enc.c related to XOR operation #60

Open
geokdev-afk opened this issue Sep 4, 2023 · 1 comment
Open

Warning in picture_csp_enc.c related to XOR operation #60

geokdev-afk opened this issue Sep 4, 2023 · 1 comment

Comments

@geokdev-afk
Copy link

Description:
When building my Go Fyne project which uses the github.com/chai2010/webp library, I encountered the following warning:

In file included from z_libwebp_src_enc_picture_csp_enc.c:9:
../../../go/pkg/mod/github.com/chai2010/[email protected]/internal/libwebp-1.0.2/src/enc/picture_csp_enc.c:1002:40: warning: result of '2 ^ ALPHA_OFFSET' is 1; did you mean '1 << ALPHA_OFFSET' (8)? [-Wxor-used-as-pow]
../../../go/pkg/mod/github.com/chai2010/[email protected]/internal/libwebp-1.0.2/src/enc/picture_csp_enc.c:1002:40: note: replace expression with '0x2 ^ ALPHA_OFFSET' to silence this warning.

Steps to reproduce:

  1. Running the app or even building it with go build .
  2. fyne package and then run the executable

Environment:

  • Go version: 1.20.1
  • OS: MacOS 13.5.1
@elliotchenzichang
Copy link

#67 trying to fix this with this PR.

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

2 participants