scanner: fix compiler warning
authorRan Benita <ran234@gmail.com>
Fri, 2 Aug 2013 11:41:19 +0000 (14:41 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 2 Aug 2013 11:41:19 +0000 (14:41 +0300)
commitaa9c91943e63c5835671cbc8605b8351f77bceb0
treee92e33fb56769d9ba9beb89dc82adc29e2bcb076
parent9bb1d0bc1d665c45e6915391ef68626dbab020b2
scanner: fix compiler warning

src/xkbcomp/scanner.c:158:17: warning: comparison of constant -1 with expression of type 'enum yytokentype' is always true
      [-Wtautological-constant-out-of-range-compare]
        if (tok != -1) return tok;
            ~~~ ^  ~~

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/scanner.c