[Pcsclite-cvs-commit] r6701 - trunk/PCSC/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Tue Jul 30 13:10:21 UTC 2013


Author: rousseau
Date: 2013-07-30 13:10:21 +0000 (Tue, 30 Jul 2013)
New Revision: 6701

Modified:
   trunk/PCSC/src/atrhandler.c
Log:
Fix compiler warning

atrhandler.c: In function ?\226?\128?\152ATRDecodeAtr?\226?\128?\153:
atrhandler.c:88:19: warning: variable ?\226?\128?\152TCi?\226?\128?\153 set but not used [-Wunused-but-set-variable]
atrhandler.c:88:14: warning: variable ?\226?\128?\152TBi?\226?\128?\153 set but not used [-Wunused-but-set-variable]

We don't use TBi and TCi but we must calculate them because of the p++
in the formulae.

See revision 5808 to know why these values are important.


Modified: trunk/PCSC/src/atrhandler.c
===================================================================
--- trunk/PCSC/src/atrhandler.c	2013-07-30 13:05:52 UTC (rev 6700)
+++ trunk/PCSC/src/atrhandler.c	2013-07-30 13:10:21 UTC (rev 6701)
@@ -92,6 +92,11 @@
 		TCi = (Y1i & 0x04) ? pucAtr[p++] : -1;
 		TDi = (Y1i & 0x08) ? pucAtr[p++] : -1;
 
+		/* We don't use TBi and TCi but we must calculate them because
+		 * of the p++ in the formulae */
+		(void)TBi;
+		(void)TCi;
+
 #ifdef ATR_DEBUG
 		Log9(PCSC_LOG_DEBUG,
 			"TA%d: %02X, TB%d: %02X, TC%d: %02X, TD%d: %02X",




More information about the Pcsclite-cvs-commit mailing list