Skip to content
  • Blue Swirl's avatar
    Fix mingw32 and OpenBSD warnings · e6e055c9
    Blue Swirl authored
    
    
    ffsl() is not universally available, so there are these warnings
    on both mingw32 and OpenBSD:
    /src/qemu/hw/pcie_aer.c: In function 'pcie_aer_update_log':
    /src/qemu/hw/pcie_aer.c:399: warning: implicit declaration of function 'ffsl'
    
    Since status field in PCIEAERErr is uint32_t, we can just use ffs() instead.
    
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    e6e055c9