mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-23 03:40:35 +01:00
test: compiler warning fixes
misc.c: In function ‘create_simple_test_device’:
misc.c:71:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ((type = va_arg(args, unsigned int)) != -1 &&
^
misc.c:72:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(code = va_arg(args, unsigned int)) != -1) {
This commit is contained in:
parent
fa8439e644
commit
0d31f9e8b1
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ create_simple_test_device(const char *name, ...)
|
|||
|
||||
va_start(args, name);
|
||||
|
||||
while ((type = va_arg(args, unsigned int)) != -1 &&
|
||||
(code = va_arg(args, unsigned int)) != -1) {
|
||||
while ((type = va_arg(args, unsigned int)) != (unsigned int)-1 &&
|
||||
(code = va_arg(args, unsigned int)) != (unsigned int)-1) {
|
||||
const struct input_absinfo *a = NULL;
|
||||
if (type == EV_ABS)
|
||||
a = &abs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue