iso7816.c:Solve compiler sign compare warn with pragma

This commit is contained in:
Christina Quast 2015-04-07 13:50:20 +02:00
parent 73c2b6498b
commit 767fdeb0ca
1 changed files with 5 additions and 1 deletions

View File

@ -297,7 +297,11 @@ uint32_t ISO7816_XfrBlockTPDU_T0(const uint8_t *pAPDU,
}
}
/* Handle INS ^ 0xff */
else if ( pAPDU[1] == (procByte ^ 0xff)) {
else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
if ( pAPDU[1] == (procByte ^ 0xff)) {
#pragma GCC diagnostic pop
TRACE_INFO("HdlINS+\n\r");
if (cmdCase == CASE2) {
/* receive data from card */