diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-02-01 16:07:41 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-03 17:12:48 +0100 |
commit | 71eb4d493956161b7e4aa48bb7c1d4c6309e5a10 (patch) | |
tree | 6dbf2855cc1b59041fd43a5ac0d10163acfac3f2 | |
parent | cfa8fcdda0e4b453b8a808946735714cfca2bfef (diff) | |
download | qtbase-71eb4d493956161b7e4aa48bb7c1d4c6309e5a10.tar.gz qtbase-71eb4d493956161b7e4aa48bb7c1d4c6309e5a10.tar.bz2 qtbase-71eb4d493956161b7e4aa48bb7c1d4c6309e5a10.zip |
Fix compilation: testBit is only used if mtdev isn't
qevdevtouch.cpp:160:20: error: unused function 'testBit'
Change-Id: Idd9eee9b916c694bdfb963c00eeb0eaaf5618d40
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
-rw-r--r-- | src/platformsupport/input/evdevtouch/qevdevtouch.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platformsupport/input/evdevtouch/qevdevtouch.cpp b/src/platformsupport/input/evdevtouch/qevdevtouch.cpp index b4ebf8179c..563edf4fd7 100644 --- a/src/platformsupport/input/evdevtouch/qevdevtouch.cpp +++ b/src/platformsupport/input/evdevtouch/qevdevtouch.cpp @@ -157,10 +157,12 @@ void QEvdevTouchScreenData::registerDevice() #define LONG_BITS (sizeof(long) << 3) #define NUM_LONGS(bits) (((bits) + LONG_BITS - 1) / LONG_BITS) +#if defined(QT_NO_MTDEV) static inline bool testBit(long bit, const long *array) { return (array[bit / LONG_BITS] >> bit % LONG_BITS) & 1; } +#endif QEvdevTouchScreenHandler::QEvdevTouchScreenHandler(const QString &specification, QObject *parent) : QObject(parent), m_notify(0), m_fd(-1), d(0) |