From ac9a7c43cb9fc229a46753b7b438fa52615c7e45 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 11 Dec 2017 12:57:56 +0100 Subject: [PATCH] - rcinput: fix compiler warnings about unused variables Signed-off-by: Thilo Graf --- src/driver/rcinput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 2f45b9269..7c0da87a4 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -194,10 +194,8 @@ void CRCInput::open(bool recheck) /* close() takes the lock, too... */ OpenThreads::ScopedLock m_lock(mutex); - unsigned long evbit; struct in_dev id; DIR *dir; - struct dirent *dentry; dir = opendir("/dev/input"); if (! dir) { printf("[rcinput:%s] opendir failed: %m\n", __func__); @@ -205,6 +203,8 @@ void CRCInput::open(bool recheck) } #if !HAVE_GENERIC_HARDWARE + unsigned long evbit; + struct dirent *dentry; while ((dentry = readdir(dir)) != NULL) { id.path = "/dev/input/" + std::string(dentry->d_name);