[Pcsclite-cvs-commit] r6970 - trunk/Drivers/ccid/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Tue Sep 2 14:07:00 UTC 2014


Author: rousseau
Date: 2014-09-02 14:07:00 +0000 (Tue, 02 Sep 2014)
New Revision: 6970

Modified:
   trunk/Drivers/ccid/src/commands.c
   trunk/Drivers/ccid/src/ifdhandler.c
Log:
Do not define variables that are not used if NO_LOG is defined

Unused variables generates a warning with an error level (and stops
the compilation) when building the UEFI driver.


Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c	2014-09-02 13:59:24 UTC (rev 6969)
+++ trunk/Drivers/ccid/src/commands.c	2014-09-02 14:07:00 UTC (rev 6970)
@@ -269,7 +269,9 @@
 		/* continue with 3 volts and 5 volts */
 		if (voltage > 1)
 		{
+#ifndef NO_LOG
 			const char *voltage_code[] = { "auto", "5V", "3V", "1.8V" };
+#endif
 
 			DEBUG_INFO3("Power up with %s failed. Try with %s.",
 				voltage_code[voltage], voltage_code[voltage-1]);

Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c	2014-09-02 13:59:24 UTC (rev 6969)
+++ trunk/Drivers/ccid/src/ifdhandler.c	2014-09-02 14:07:00 UTC (rev 6970)
@@ -1120,7 +1120,9 @@
 	RESPONSECODE return_value = IFD_SUCCESS;
 	unsigned char pcbuffer[10+MAX_ATR_SIZE];
 	int reader_index;
+#ifndef NO_LOG
 	const char *actions[] = { "PowerUp", "PowerDown", "Reset" };
+#endif
 	unsigned int oldReadTimeout;
 	_ccid_descriptor *ccid_descriptor;
 




More information about the Pcsclite-cvs-commit mailing list