• 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
Name
Last commit
Last update
.gitignore Loading commit data...
ATR_analysis Loading commit data...
ATR_analysis.1p Loading commit data...
LICENCE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
README.md Loading commit data...
bootstrap Loading commit data...
configure.ac Loading commit data...
gscriptor Loading commit data...
gscriptor.1p Loading commit data...
gscriptor.desktop Loading commit data...
gscriptor.gtk1.2 Loading commit data...
pcsc_scan.1 Loading commit data...
pcsc_scan.c Loading commit data...
scriptor Loading commit data...
scriptor.1p Loading commit data...
smartcard_list.txt Loading commit data...
sort_smartcard_list.py Loading commit data...
sync.sh Loading commit data...
test.script Loading commit data...