aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommi Rantala <tommi.rantala@g-cluster.com>2015-03-04 13:12:40 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2015-03-05 08:47:03 +1000
commit58e4b0c2fed7ba04ee8ba4281d92ef23accb1b01 (patch)
tree0d09d98f3f544b370eac02d02c618e518d9c18f0
parent73b1fcf2c01b7667a3ffce60cf94d426eddb6759 (diff)
downloadexternal_evtest-58e4b0c2fed7ba04ee8ba4281d92ef23accb1b01.tar.gz
external_evtest-58e4b0c2fed7ba04ee8ba4281d92ef23accb1b01.tar.bz2
external_evtest-58e4b0c2fed7ba04ee8ba4281d92ef23accb1b01.zip
Avoid compiler warning when INPUT_PROP_SEMI_MT not defined
evtest.c: In function ‘print_device_info’: evtest.c:985: warning: unused variable ‘prop’ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--evtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/evtest.c b/evtest.c
index 64a7ed3..bdd7115 100644
--- a/evtest.c
+++ b/evtest.c
@@ -963,12 +963,13 @@ static inline const char* propname(unsigned int prop)
*/
static int print_device_info(int fd)
{
- unsigned int type, code, prop;
+ unsigned int type, code;
int version;
unsigned short id[4];
char name[256] = "Unknown";
unsigned long bit[EV_MAX][NBITS(KEY_MAX)];
#ifdef INPUT_PROP_SEMI_MT
+ unsigned int prop;
unsigned long propbits[INPUT_PROP_MAX];
#endif