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