projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bb1d0b
)
scanner: fix compiler warning
author
Ran Benita
<ran234@gmail.com>
Fri, 2 Aug 2013 11:41:19 +0000
(14:41 +0300)
committer
Ran Benita
<ran234@gmail.com>
Fri, 2 Aug 2013 11:41:19 +0000
(14:41 +0300)
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
patch
|
blob
|
history
diff --git
a/src/xkbcomp/scanner.c
b/src/xkbcomp/scanner.c
index
dcd7468
..
49df658
100644
(file)
--- a/
src/xkbcomp/scanner.c
+++ b/
src/xkbcomp/scanner.c
@@
-155,7
+155,7
@@
skip_more_whitespace_and_comments:
/* Keyword. */
tok = keyword_to_token(s->buf);
- if (tok != -1) return tok;
+ if (
(int)
tok != -1) return tok;
yylval->str = strdup(s->buf);
if (!yylval->str)