• Ludovic Rousseau's avatar
    Fix compiler warnings on macOS · bb153076
    Ludovic Rousseau authored
    pcsc_scan.c:488:9: warning: comparison of integers of different signs: 'LONG'
          (aka 'int') and 'unsigned int' [-Wsign-compare]
            if (rv != SCARD_E_NO_READERS_AVAILABLE)
                ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    pcsc_scan.c:520:35: warning: comparison of integers of different signs:
          'unsigned int' and 'LONG' (aka 'int') [-Wsign-compare]
            if (SCARD_E_NO_READERS_AVAILABLE == rv || 0 == nbReaders)
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
    pcsc_scan.c:539:28: warning: comparison of integers of different signs:
          'unsigned int' and 'LONG' (aka 'int') [-Wsign-compare]
                            while ((SCARD_E_TIMEOUT == rv) && !spinning_inte...
                                    ~~~~~~~~~~~~~~~ ^  ~~
    pcsc_scan.c:551:38: warning: comparison of integers of different signs:
          'unsigned int' and 'LONG' (aka 'int') [-Wsign-compare]
                                    if (SCARD_E_NO_READERS_AVAILABLE == rv)
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
    pcsc_scan.c:623:41: warning: comparison of integers of different signs: 'LONG'
          (aka 'int') and 'unsigned int' [-Wsign-compare]
            while (((rv == SCARD_S_SUCCESS) || (rv == SCARD_E_TIMEOUT)) && !spinning...
                                                ~~ ^  ~~~~~~~~~~~~~~~
    pcsc_scan.c:653:10: warning: comparison of integers of different signs: 'LONG'
          (aka 'int') and 'unsigned int' [-Wsign-compare]
                    if (rv != SCARD_E_TIMEOUT)
                        ~~ ^  ~~~~~~~~~~~~~~~
    pcsc_scan.c:798:29: warning: comparison of integers of different signs:
          'unsigned int' and 'LONG' (aka 'int') [-Wsign-compare]
            if (SCARD_E_UNKNOWN_READER == rv)
                ~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
    bb153076
pcsc_scan.c 18.8 KB