[Pcsclite-cvs-commit] r5804 - /trunk/PCSC/src/atrhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Jun 22 07:03:57 UTC 2011
Author: rousseau
Date: Wed Jun 22 07:03:57 2011
New Revision: 5804
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5804
Log:
ATRDecodeAtr(): only use TBi and TCi in ATR_DEBUG mode
atrhandler.c: In function `ATRDecodeAtr':
atrhandler.c:106:19: warning: variable `TCi' set but not used
[-Wunused-but-set-variable]
atrhandler.c:106:14: warning: variable `TBi' set but not used
[-Wunused-but-set-variable]
Modified:
trunk/PCSC/src/atrhandler.c
Modified: trunk/PCSC/src/atrhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/atrhandler.c?rev=5804&op=diff
==============================================================================
--- trunk/PCSC/src/atrhandler.c (original)
+++ trunk/PCSC/src/atrhandler.c Wed Jun 22 07:03:57 2011
@@ -103,11 +103,19 @@
*/
do
{
- short TAi, TBi, TCi, TDi; /* Interface characters */
+ short TAi, TDi; /* Interface characters */
+#ifdef ATR_DEBUG
+ short TBi, TCi; /* Interface characters */
+#endif
TAi = (Y1i & 0x01) ? pucAtr[p++] : -1;
+#ifdef ATR_DEBUG
TBi = (Y1i & 0x02) ? pucAtr[p++] : -1;
TCi = (Y1i & 0x04) ? pucAtr[p++] : -1;
+#else
+ p++; /* TBi */
+ p++; /* TCi */
+#endif
TDi = (Y1i & 0x08) ? pucAtr[p++] : -1;
#ifdef ATR_DEBUG
More information about the Pcsclite-cvs-commit
mailing list