xcursorgen: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Nov 19 20:16:08 UTC 2022
.gitlab-ci.yml | 4 ++--
configure.ac | 2 +-
xcursorgen.c | 27 +++++++++++++++------------
3 files changed, 18 insertions(+), 15 deletions(-)
New commits:
commit 281ebaaaf43139f7876033af54d088d8e93264b7
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 12 12:18:34 2022 -0800
Resolve -Wsign-conversion warnings from clang
xcursorgen.c:169:62: warning: implicit conversion changes signedness:
'int' to 'XcursorPixel' (aka 'unsigned int') [-Wsign-conversion]
p = (alpha << 24) | (red << 16) | (green << 8) | (blue << 0);
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
xcursorgen.c:269:39: warning: implicit conversion changes signedness:
'png_uint_32' (aka 'unsigned int') to 'int' [-Wsign-conversion]
image = XcursorImageCreate(width, height);
~~~~~~~~~~~~~~~~~~ ^~~~~~
xcursorgen.c:269:32: warning: implicit conversion changes signedness:
'png_uint_32' (aka 'unsigned int') to 'int' [-Wsign-conversion]
image = XcursorImageCreate(width, height);
~~~~~~~~~~~~~~~~~~ ^~~~~
xcursorgen.c:280:25: warning: implicit conversion changes signedness:
'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion]
image->size = list->size;
~ ~~~~~~^~~~
xcursorgen.c:281:25: warning: implicit conversion changes signedness:
'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion]
image->xhot = list->xhot;
~ ~~~~~~^~~~
xcursorgen.c:282:25: warning: implicit conversion changes signedness:
'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion]
image->yhot = list->yhot;
~ ~~~~~~^~~~
xcursorgen.c:283:26: warning: implicit conversion changes signedness:
'int' to 'XcursorUInt' (aka 'unsigned int') [-Wsign-conversion]
image->delay = list->delay;
~ ~~~~~~^~~~~
xcursorgen.c:364:35: warning: implicit conversion changes signedness:
'unsigned int' to 'int' [-Wsign-conversion]
.height = height,
^~~~~~
xcursorgen.c:363:24: warning: implicit conversion changes signedness:
'unsigned int' to 'int' [-Wsign-conversion]
.width = width,
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit a5340b685b0ffc19793956a97a03d47e6f9076f4
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 12 12:09:30 2022 -0800
Handle -Wimplicit-int-conversion warnings from clang
xcursorgen.c:166:19: warning: implicit conversion loses integer precision:
'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion]
red = div_255((unsigned) red * (unsigned) alpha);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcursorgen.c:167:19: warning: implicit conversion loses integer precision:
'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion]
green = div_255((unsigned) green * (unsigned) alpha);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcursorgen.c:168:19: warning: implicit conversion loses integer precision:
'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion]
blue = div_255((unsigned) blue * (unsigned) alpha);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit b8058f42a84f4930c074860bec5854c4ff818463
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Nov 12 12:06:50 2022 -0800
premultiply_data(): Mark png argument unused
Clears clang warning:
xcursorgen.c:152:30: warning: unused parameter 'png' [-Wunused-parameter]
premultiply_data(png_structp png, png_row_infop row_info, png_bytep data)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 80b0b8c0a839b45a261d32b1cd1152257e16aa10
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Thu Jul 28 17:30:21 2022 -0700
gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list