- rcinput: fix compiler warnings about unused variables

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-12-11 12:57:56 +01:00
committed by Thilo Graf
parent 441491d253
commit ac9a7c43cb

View File

@@ -194,10 +194,8 @@ void CRCInput::open(bool recheck)
/* close() takes the lock, too... */ /* close() takes the lock, too... */
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex); OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex);
unsigned long evbit;
struct in_dev id; struct in_dev id;
DIR *dir; DIR *dir;
struct dirent *dentry;
dir = opendir("/dev/input"); dir = opendir("/dev/input");
if (! dir) { if (! dir) {
printf("[rcinput:%s] opendir failed: %m\n", __func__); printf("[rcinput:%s] opendir failed: %m\n", __func__);
@@ -205,6 +203,8 @@ void CRCInput::open(bool recheck)
} }
#if !HAVE_GENERIC_HARDWARE #if !HAVE_GENERIC_HARDWARE
unsigned long evbit;
struct dirent *dentry;
while ((dentry = readdir(dir)) != NULL) while ((dentry = readdir(dir)) != NULL)
{ {
id.path = "/dev/input/" + std::string(dentry->d_name); id.path = "/dev/input/" + std::string(dentry->d_name);