• Philippe Teuwen's avatar
    Fix compilation warnings: values never read · 2334adc8
    Philippe Teuwen authored
    Fixes:
    pn53x.c:523:11: warning: Value stored to 'pbtRawData' is never read
              pbtRawData += szRawData - 8;
              ^             ~~~~~~~~~~~~~
    pn53x.c:544:7: warning: Value stored to 'pbtRawData' is never read
          pbtRawData += 2;
          ^             ~
    pn53x.c:532:7: warning: Value stored to 'pbtRawData' is never read
          pbtRawData += 8;
          ^             ~
    pn53x.c:3085:3: warning: Value stored to 'buflen' is never read
      buflen -= res;
      ^         ~~~
    pn53x.c:3080:3: warning: Value stored to 'buf' is never read
      buf += res;
      ^      ~~~
    target-subr.c:466:7: warning: Value stored to 'dst' is never read
          dst += sprintf(dst, "* Unknown card, sorry\n");
          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    target-subr.c:480:3: warning: Value stored to 'dst' is never read
      dst += sprint_hex(dst, nfi.abtSysCode, 2);
      ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    target-subr.c:490:3: warning: Value stored to 'dst' is never read
      dst += sprint_hex(dst, nji.btId, 4);
      ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    target-subr.c:546:7: warning: Value stored to 'dst' is never read
          dst += sprintf(dst, "\n");
          ^      ~~~~~~~~~~~~~~~~~~
    target-subr.c:571:5: warning: Value stored to 'dst' is never read
        dst += sprint_hex(dst, nii.abtAtr, nii.szAtrLen);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    target-subr.c:580:3: warning: Value stored to 'dst' is never read
      dst += sprint_hex(dst, nsi.abtUID, 8);
      ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    target-subr.c:593:3: warning: Value stored to 'dst' is never read
      dst += sprintf(dst, "           Fab Code: %02X\n", nci.btFabCode);
      ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    target-subr.c:608:5: warning: Value stored to 'dst' is never read
        dst += sprint_hex(dst, ndi.abtGB, ndi.szGB);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2334adc8
Name
Last commit
Last update
cmake Loading commit data...
contrib Loading commit data...
debian Loading commit data...
examples Loading commit data...
include Loading commit data...
libnfc Loading commit data...
m4 Loading commit data...
test Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Doxyfile.in Loading commit data...
HACKING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README-Windows.txt Loading commit data...
configure.ac Loading commit data...
libnfc.conf.sample Loading commit data...
libnfc.pc.in Loading commit data...
make_release.sh Loading commit data...
manual-test-results.txt Loading commit data...
mingw-cross-configure.sh Loading commit data...