xicursorset.c:84:32: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
image = XcursorShapeLoadImage(shape, theme, size);
~~~~~~~~~~~~~~~~~~~~~ ^~~~~
The casting is safe because at that point in the code the value is
guaranteed to be non-negative.
- image = XcursorShapeLoadImage(shape, theme, size);
+ image = XcursorShapeLoadImage((unsigned int)shape, theme, size);
if (image == NULL) {
fprintf(stderr, "Can't get cursor image, check <shape> or <theme>.\n");
return EXIT_FAILURE;
if (image == NULL) {
fprintf(stderr, "Can't get cursor image, check <shape> or <theme>.\n");
return EXIT_FAILURE;