From 7091452acd3e133742099b16cc94b3e3b5c494c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 28 Apr 2014 16:57:35 +0200 Subject: [PATCH] Fix unused variable warnings for compilation without xkbcommon Sorry, my fault that this generated warnings in the first place. --- input.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/input.cpp b/input.cpp index bcdc7c9dc4..dce42a7ff2 100644 --- a/input.cpp +++ b/input.cpp @@ -342,6 +342,11 @@ void InputRedirection::processKeyboardModifiers(uint32_t modsDepressed, uint32_t if (oldMods != keyboardModifiers()) { emit keyboardModifiersChanged(keyboardModifiers(), oldMods); } +#else + Q_UNUSED(modsDepressed) + Q_UNUSED(modsLatched) + Q_UNUSED(modsLocked) + Q_UNUSED(group) #endif } @@ -350,6 +355,9 @@ void InputRedirection::processKeymapChange(int fd, uint32_t size) // TODO: should we pass the keymap to our Clients? Or only to the currently active one and update #if HAVE_XKB m_xkb->installKeymap(fd, size); +#else + Q_UNUSED(fd) + Q_UNUSED(size) #endif }