[Pcsclite-cvs-commit] r3304 - in /trunk/PCSC/src: hotplug_libhal.c pcsc-wirecheck-gen.c pcsc-wirecheck-main.c pcscdaemon.c readerfactory.c testpcsc.c winscard.c winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Feb 6 08:46:20 UTC 2009
Author: rousseau
Date: Fri Feb 6 08:46:19 2009
New Revision: 3304
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3304
Log:
use (void)param; for unused function parameters to avoid compiler
warnings
Modified:
trunk/PCSC/src/hotplug_libhal.c
trunk/PCSC/src/pcsc-wirecheck-gen.c
trunk/PCSC/src/pcsc-wirecheck-main.c
trunk/PCSC/src/pcscdaemon.c
trunk/PCSC/src/readerfactory.c
trunk/PCSC/src/testpcsc.c
trunk/PCSC/src/winscard.c
trunk/PCSC/src/winscard_clnt.c
Modified: trunk/PCSC/src/hotplug_libhal.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_libhal.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libhal.c (original)
+++ trunk/PCSC/src/hotplug_libhal.c Fri Feb 6 08:46:19 2009
@@ -411,6 +411,7 @@
{
int i;
+ (void)ctx;
for (i=0; i<PCSCLITE_MAX_READERS_CONTEXTS; i++)
{
if (readerTracker[i].udi && strcmp(readerTracker[i].udi, udi) == 0)
Modified: trunk/PCSC/src/pcsc-wirecheck-gen.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcsc-wirecheck-gen.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/pcsc-wirecheck-gen.c (original)
+++ trunk/PCSC/src/pcsc-wirecheck-gen.c Fri Feb 6 08:46:19 2009
@@ -253,6 +253,9 @@
int
main(/*@unused@*/ int argc, /*@unused@*/ char **argv)
{
+ (void)argc;
+ (void)argv;
+
printf ("#include <sys/types.h>\n"
"#include <time.h>\n"
"#include <stddef.h>\n\n"
Modified: trunk/PCSC/src/pcsc-wirecheck-main.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcsc-wirecheck-main.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/pcsc-wirecheck-main.c (original)
+++ trunk/PCSC/src/pcsc-wirecheck-main.c Fri Feb 6 08:46:19 2009
@@ -5,6 +5,9 @@
int
main (/*@unused@*/ int argc, /*@unused@*/ char **argv)
{
+ (void)argc;
+ (void)argv;
+
printf("Checking ABI...\n");
if (0 == pcsc_assert_wire_constants ())
printf("OK\n");
Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Fri Feb 6 08:46:19 2009
@@ -562,6 +562,8 @@
static void signal_reload(/*@unused@*/ int sig)
{
+ (void)sig;
+
if (AraKiri)
return;
@@ -570,6 +572,8 @@
static void signal_trap(/*@unused@*/ int sig)
{
+ (void)sig;
+
/* the signal handler is called several times for the same Ctrl-C */
if (AraKiri == FALSE)
{
Modified: trunk/PCSC/src/readerfactory.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/readerfactory.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Fri Feb 6 08:46:19 2009
@@ -1114,6 +1114,7 @@
LONG RFDestroyReaderHandle(/*@unused@*/ SCARDHANDLE hCard)
{
+ (void)hCard;
return SCARD_S_SUCCESS;
}
Modified: trunk/PCSC/src/testpcsc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/testpcsc.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/testpcsc.c (original)
+++ trunk/PCSC/src/testpcsc.c Fri Feb 6 08:46:19 2009
@@ -81,6 +81,9 @@
unsigned char bRecvBuffer[MAX_BUFFER_SIZE];
DWORD send_length, length;
+ (void)argc;
+ (void)argv;
+
printf("\nMUSCLE PC/SC Lite unitary test Program\n\n");
printf(MAGENTA "THIS PROGRAM IS NOT DESIGNED AS A TESTING TOOL FOR END USERS!\n");
Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Fri Feb 6 08:46:19 2009
@@ -217,6 +217,8 @@
LONG SCardEstablishContext(DWORD dwScope, /*@unused@*/ LPCVOID pvReserved1,
/*@unused@*/ LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
{
+ (void)pvReserved1;
+ (void)pvReserved2;
/*
* Check for NULL pointer
*/
@@ -261,6 +263,8 @@
* case someone calls it here
*/
+ (void)hContext;
+ (void)dwTimeout;
return SCARD_E_UNSUPPORTED_FEATURE;
}
@@ -272,6 +276,7 @@
PREADER_CONTEXT rContext = NULL;
DWORD dwStatus;
+ (void)hContext;
PROFILE_START
/*
@@ -1364,6 +1369,10 @@
/*
* Client side function
*/
+ (void)hContext;
+ (void)dwTimeout;
+ (void)rgReaderStates;
+ (void)cReaders;
return SCARD_S_SUCCESS;
}
@@ -1687,6 +1696,10 @@
/*
* Client side function
*/
+ (void)hContext;
+ (void)mszGroups;
+ (void)mszReaders;
+ (void)pcchReaders;
return SCARD_S_SUCCESS;
}
@@ -1695,6 +1708,7 @@
/*
* Client side function
*/
+ (void)hContext;
return SCARD_S_SUCCESS;
}
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=3304&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Fri Feb 6 08:46:19 2009
@@ -363,6 +363,8 @@
sharedSegmentMsg msgStruct;
uint32_t dwClientID = 0;
+ (void)pvReserved1;
+ (void)pvReserved2;
if (phContext == NULL)
return SCARD_E_INVALID_PARAMETER;
else
@@ -666,7 +668,8 @@
/*
* Deprecated
*/
-
+ (void)hContext;
+ (void)dwTimeout;
return SCARD_S_SUCCESS;
}
@@ -3169,6 +3172,7 @@
LONG rv = SCARD_S_SUCCESS;
char *buf = NULL;
+ (void)mszGroups;
PROFILE_START
/*
More information about the Pcsclite-cvs-commit
mailing list