[Pcsclite-git-commit] [PCSC] 05/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 8b41f649b65079ec232bf584ed0ca5cc066fcb94
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Wed Mar 1 15:59:03 2017 +0100

    --enable-embedded: fix compiler warning
    
    hotplug_libudev.c: In function ‘get_driver’:
    hotplug_libudev.c:269:14: warning: unused parameter ‘devpath’ [-Wunused-parameter]
      const char *devpath, struct _driverTracker **classdriver)
                  ^~~~~~~
---
 src/hotplug_libudev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/hotplug_libudev.c b/src/hotplug_libudev.c
index a8ba1b8..184b6b3 100644
--- a/src/hotplug_libudev.c
+++ b/src/hotplug_libudev.c
@@ -289,6 +289,9 @@ static LONG HPReadBundleValues(void)
 	}
 	idProduct = strtol(str, NULL, 16);
 
+#ifdef NO_LOG
+	(void)devpath;
+#endif
 	Log4(PCSC_LOG_DEBUG,
 		"Looking for a driver for VID: 0x%04X, PID: 0x%04X, path: %s",
 		idVendor, idProduct, devpath);

-- 
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