Skip to content

community/xf86-video-rendition: fix build with gcc 14

mio requested to merge mio/aports:xf86-video-rendition into master

Fix -Wimplicit-function-declaration error with gcc 14. Found on the 3.21 x86_64 builder (error log).

vloaduc.c: In function 'verite_load_ucfile':
vloaduc.c:35:17: error: implicit declaration of function 'lswaps'; did you mean 'swaps'? [-Wimplicit-function-declaration]
   35 | #define SW16(x) lswaps(x)
      |                 ^~~~~~
vloaduc.c:103:6: note: in expansion of macro 'SW16'
  103 |   sz=SW16(ehdr.e_phentsize);
      |      ^~~~
vloaduc.c:34:17: error: implicit declaration of function 'lswapl'; did you mean 'swapl'? [-Wimplicit-function-declaration]
   34 | #define SW32(x) lswapl(x)
      |                 ^~~~~~
vloaduc.c:113:42: note: in expansion of macro 'SW32'
  113 |         if (seek_and_read_hdr(fd, pphdr, SW32(ehdr.e_phoff), sz, num)) {
      |                                          ^~~~

Merge request reports

Loading