Created attachment 15151 [details] [review]
This fixes all warnings but those about usage of deprecated libpciaccess
functions and some macro values passed to pci_device_cfg_read_u32, that
expects unsigned arguments, but the values default to signed integers in
the definition, and probably would be too much pedantic to add an ending U
to code like "<hash>define val <num>"
Not a bug when in a standard gcc build,
and the efforts to have a fully ansified xorg
are quite high, for something that would not
generate any visible end result, and with high
chances of adding bugs during ansification or
printf format corrections.