nfc-tools / mfcuk

MiFare Classic Universal toolKit (MFCUK)
GNU General Public License v2.0
954 stars 226 forks source link

Two compilation warnings #65

Closed ArchangeGabriel closed 5 years ago

ArchangeGabriel commented 5 years ago

(Using latest commit on master branch)

mfcuk.c: In function ‘main’:
mfcuk.c:1573:15: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare]
         if (0 > nfc_initiator_mifare_cmd(pnd, k, block, &mp)) {
               ^
At top level:
mfcuk.c:239:17: warning: ‘mfcuk_verify_key_block’ defined but not used [-Wunused-function]
 static uint32_t mfcuk_verify_key_block(nfc_device *pnd, uint32_t uiUID, uint64_t ui64Key, mifare_key_type bKeyType, uint8_t bTagType, uint32_t uiBlock)
                 ^~~~~~~~~~~~~~~~~~~~~~
Shuunen commented 5 years ago

same here...

XAS-712 commented 5 years ago

Maybe it won’t cause bugs?