Fix FTBFS by correcting type of some 32-bit values on 64-bit targets

This patch fixes building from source with GCC-14 by correcting a type assignment that caused the compiler to complain that a function returning a 64-bit value was being registered as a function pointer where a function returning a 32-bit value was expected. The failure is a warning [-Wincompatible-pointer-types] being treated as an error.

The change is made to xf86int10.h to fix a build failure in thunk.c:

thunk.c: In function ‘LRMI_init’:
thunk.c:150:17: error: initialization of ‘x86emuu32 (*)(X86EMU_pioAddr)’ {aka ‘unsigned int (*)(short unsigned int)’} from incompatible pointer type ‘long unsigned int (*)(short unsigned int)’ [-Wincompatible-pointer-types]
  150 |                 (&x_inl),
      |                 ^
thunk.c:150:17: note: (near initialization for ‘pioFuncs.inl’)

(Closes: #1075218)

Merge request reports

Loading