Skip to content
  • Alan Coopersmith's avatar
    Define PCI_MATCH_ANY as an unsigned int · a39f0546
    Alan Coopersmith authored
    
    
    Clears a bunch of clang warnings of the forms:
    
    common_device_name.c:345:23: warning: comparison of integers of different signs:
     'const uint32_t' (aka 'const unsigned int') and 'int' [-Wsign-compare]
        if ( m->vendor_id == PCI_MATCH_ANY ) {
             ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~
    
    common_device_name.c:498:19: warning: implicit conversion changes signedness:
     'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
        m.device_id = PCI_MATCH_ANY;
                    ~ ^~~~~~~~~~~~~
    
    Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    a39f0546