Handle explicitly enum vals in switch [-Wswitch-enum]

This commit is contained in:
Philippe Teuwen 2019-04-13 22:46:08 +02:00
parent b6ee94ec8e
commit ce606b51fc
6 changed files with 43 additions and 17 deletions

View file

@ -238,7 +238,11 @@ static int ndefDecodePayload(NDEFHeader_t *ndef) {
PrintAndLogEx(NORMAL, "\ttype: %.*s", ndef->TypeLen, ndef->Type);
PrintAndLogEx(NORMAL, "\tpayload: %.*s", ndef->PayloadLen, ndef->Payload);
break;
default:
case tnfEmptyRecord:
case tnfMIMEMediaRecord:
case tnfExternalRecord:
case tnfUnchangedRecord:
case tnfUnknownRecord:
break;
}
return 0;