-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix shift-sign issue in Convert.c #7838
Conversation
Fixes ``` libImaging/Convert.c:513:25: error: signed shift result (0xFF000000) sets the sign bit of the shift expression's type ('int') and becomes negative [-Werror,-Wshift-sign-overflow] UINT32 trns = (0xff << 24) | ((b & 0xff) << 16) | ((g & 0xff) << 8) | (r & 0xff); ~~~~ ^ ~~ ```
Hi. A quick glance through some of our CI jobs, and I don't see this problem on main. Could you provide some more information about the environment where you're seeing this? |
@radarhere - We compile pillow using a separate build system to get better LTO. This build system has You could enable |
This reverts commit 38cec87.
Generally, compiler flags specific to CI are listed here Line 63 in e42528e
but it seems this warning is not supported by GCC, only Clang. |
Fixes