Silent some compilation warnings (Fixes Issue 145)

This commit is contained in:
Romuald Conty 2011-02-10 10:38:21 +00:00
parent f272e156e8
commit 243100b676
4 changed files with 12 additions and 6 deletions

View file

@ -1287,6 +1287,8 @@ pn53x_target_init (nfc_device_t * pnd, nfc_target_t * pnt, byte_t * pbtRx, size_
nfc_dep_mode_t ndm = NDM_UNDEFINED;
byte_t btActivatedMode;
nm.nbr = NBR_UNDEFINED;
if(!pn53x_TgInitAsTarget(pnd, ptm, pbtMifareParams, pbtTkt, szTkt, pbtFeliCaParams, pbtNFCID3t, pbtGBt, szGBt, pbtRx, pszRx, &btActivatedMode)) {
return false;
}
@ -1648,6 +1650,8 @@ pn53x_ptt_to_nm( const pn53x_target_type_t ptt )
return (const nfc_modulation_t){ .nmt = NMT_DEP, .nbr = NBR_424 };
break;
}
// We should never be here, this line silent compilation warning
return (const nfc_modulation_t){ .nmt = NMT_ISO14443A, .nbr = NBR_106 };
}
const pn53x_target_type_t