~exec64/imv#57: 
Fix FTBFS on i686 with GCC 14

GCC 14 errors out on some type errors which used to be warnings (see below). The attached patch fixes that. Error from Fedora rawhide (pre F40):

../src/x11_window.c: In function ‘imv_window_is_fullscreen’: ../src/x11_window.c:217:48: error: passing argument 10 of ‘XGetWindowProperty’ from incompatible pointer type [-Wincompatible-pointer-types] 217 | 0, 1024, False, XA_ATOM, &type, &format, &count, &after, (unsigned char**)&props); | ^~ | | | size_t * {aka unsigned int *} In file included from /usr/include/GL/glx.h:30, from ../src/x11_window.c:12: /usr/include/X11/Xlib.h:2700:5: note: expected ‘long unsigned int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’} 2700 | unsigned long* /* nitems_return */, | ^~~~~~~~~~~~ ../src/x11_window.c:217:56: error: passing argument 11 of ‘XGetWindowProperty’ from incompatible pointer type [-Wincompatible-pointer-types] 217 | 0, 1024, False, XA_ATOM, &type, &format, &count, &after, (unsigned char**)&props); | ^~~~ | | | size_t

  • {aka unsigned int *} /usr/include/X11/Xlib.h:2701:5: note: expected ‘long unsigned int *’ but argument is of type ‘size_t ’ {aka ‘unsigned int ’} 2701 | unsigned long / bytes_after_return */, | ^~~~~~
Status
REPORTED
Submitter
Michael J Gruber
Assigned to
No-one
Submitted
10 months ago
Updated
10 months ago
Labels
No labels applied.