Remove unused variables
Fix compiler warnings: lsnfc.c: In function ‘mifare_ultralight_identification’: lsnfc.c:79:10: warning: unused variable ‘szRxLen’ [-Wunused-variable] lsnfc.c: In function ‘mifare_desfire_identification’: lsnfc.c:119:10: warning: unused variable ‘szRxLen’ [-Wunused-variable] lsnfc.c: In function ‘main’: lsnfc.c:271:10: warning: unused variable ‘szTargetFound’ [-Wunused-variable]
This commit is contained in:
parent
13478faa78
commit
ca3d264aa0
@ -76,7 +76,6 @@ mifare_ultralight_identification(const nfc_iso14443a_info nai)
|
|||||||
{
|
{
|
||||||
uint8_t abtCmd[2];
|
uint8_t abtCmd[2];
|
||||||
uint8_t abtRx[265];
|
uint8_t abtRx[265];
|
||||||
size_t szRxLen;
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
abtCmd[0] = 0x1A; // MIFARE UltralightC Auth command
|
abtCmd[0] = 0x1A; // MIFARE UltralightC Auth command
|
||||||
@ -116,7 +115,6 @@ mifare_desfire_identification(const nfc_iso14443a_info nai)
|
|||||||
{
|
{
|
||||||
uint8_t abtCmd[] = { 0x60 }; // MIFARE DESFire GetVersion command
|
uint8_t abtCmd[] = { 0x60 }; // MIFARE DESFire GetVersion command
|
||||||
uint8_t abtRx[265];
|
uint8_t abtRx[265];
|
||||||
size_t szRxLen;
|
|
||||||
uint8_t abtDESFireVersion[14];
|
uint8_t abtDESFireVersion[14];
|
||||||
char *res = NULL;
|
char *res = NULL;
|
||||||
int nfcRes = 0;
|
int nfcRes = 0;
|
||||||
@ -268,7 +266,6 @@ main(int argc, const char *argv[])
|
|||||||
uint8_t tag_count = 0; // total
|
uint8_t tag_count = 0; // total
|
||||||
|
|
||||||
size_t szDeviceFound;
|
size_t szDeviceFound;
|
||||||
size_t szTargetFound;
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
(void)(argc);
|
(void)(argc);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user