[Pcsclite-git-commit] [PCSC] 03/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 37cee3b3c45520c06e9c39d034771e6cba58a1e2
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Wed Mar 1 15:55:30 2017 +0100
--enable-embedded: fix compiler warning
dyn_unix.c: In function ‘DYN_GetAddress’:
dyn_unix.c:85:30: warning: unused parameter ‘mayfail’ [-Wunused-parameter]
const char *pcFunction, int mayfail)
^~~~~~~
---
src/dyn_unix.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/dyn_unix.c b/src/dyn_unix.c
index edf8397..0fba515 100644
--- a/src/dyn_unix.c
+++ b/src/dyn_unix.c
@@ -100,6 +100,9 @@ INTERNAL LONG DYN_GetAddress(void *pvLHandle, void **pvFHandle,
if (*pvFHandle == NULL)
{
+#ifdef NO_LOG
+ (void)mayfail;
+#endif
Log3(mayfail ? PCSC_LOG_INFO : PCSC_LOG_CRITICAL, "%s: %s",
pcFunction, dlerror());
rv = SCARD_F_UNKNOWN_ERROR;
--
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