[Pcsclite-git-commit] [PCSC] 04/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 d64a505d24cd11bc3d8e879fff4ba3675be9bcfc
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Wed Mar 1 15:57:12 2017 +0100
--enable-embedded: fix compiler warning
eventhandler.c: In function ‘EHStatusHandlerThread’:
eventhandler.c:248:14: warning: variable ‘readerName’ set but not used [-Wunused-but-set-variable]
const char *readerName;
^~~~~~~~~~
---
src/eventhandler.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/eventhandler.c b/src/eventhandler.c
index a5f0828..4def507 100644
--- a/src/eventhandler.c
+++ b/src/eventhandler.c
@@ -245,7 +245,9 @@ LONG EHSpawnEventHandler(READER_CONTEXT * rContext)
static void EHStatusHandlerThread(READER_CONTEXT * rContext)
{
LONG rv;
+#ifndef NO_LOG
const char *readerName;
+#endif
DWORD dwStatus;
uint32_t readerState;
int32_t readerSharing;
@@ -259,7 +261,9 @@ static void EHStatusHandlerThread(READER_CONTEXT * rContext)
*/
dwStatus = 0;
+#ifndef NO_LOG
readerName = rContext->readerState->readerName;
+#endif
rv = IFDStatusICC(rContext, &dwStatus);
--
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