[Pcsclite-git-commit] [PCSC] 06/07: --enable-embedded: fix compiler warning

Ludovic Rousseau rousseau at moszumanska.debian.org
Wed Mar 1 15:09:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit ad7f77fa498f8901983ed0406cea1bf6602a5bd7
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Wed Mar 1 16:00:13 2017 +0100

    --enable-embedded: fix compiler warning
    
    winscard.c: In function ‘SCardReleaseContext’:
    winscard.c:220:39: warning: unused parameter ‘hContext’ [-Wunused-parameter]
     LONG SCardReleaseContext(SCARDCONTEXT hContext)
                                           ^~~~~~~~
---
 src/winscard.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/winscard.c b/src/winscard.c
index 671f841..a8f0b30 100644
--- a/src/winscard.c
+++ b/src/winscard.c
@@ -222,6 +222,9 @@ LONG SCardReleaseContext(SCARDCONTEXT hContext)
 	/*
 	 * Nothing to do here RPC layer will handle this
 	 */
+#ifdef NO_LOG
+	(void)hContext;
+#endif
 
 	Log2(PCSC_LOG_DEBUG, "Releasing Context: 0x%lX", hContext);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git



More information about the Pcsclite-cvs-commit mailing list