mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 01:24:04 +00:00
test: fix some scan-build warnings
e.g. ../../../test/test-draglock.c:262:2: warning: Value stored to 'rc' is never read [deadcode.DeadStores] 262 | rc = draglock_init_from_string(&dl, "10");
This commit is contained in:
@@ -233,6 +233,7 @@ test_filter_meta_passthrough(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
rc = draglock_init_from_string(&dl, "10");
|
rc = draglock_init_from_string(&dl, "10");
|
||||||
|
assert(rc == 0);
|
||||||
|
|
||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
button = i;
|
button = i;
|
||||||
@@ -259,6 +260,7 @@ test_filter_meta_click_meta_only(void)
|
|||||||
int button, press;
|
int button, press;
|
||||||
|
|
||||||
rc = draglock_init_from_string(&dl, "10");
|
rc = draglock_init_from_string(&dl, "10");
|
||||||
|
assert(rc == 0);
|
||||||
|
|
||||||
button = 10;
|
button = 10;
|
||||||
press = 1;
|
press = 1;
|
||||||
@@ -283,6 +285,7 @@ test_filter_meta(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
rc = draglock_init_from_string(&dl, "10");
|
rc = draglock_init_from_string(&dl, "10");
|
||||||
|
assert(rc == 0);
|
||||||
|
|
||||||
for (i = 1; i < 10; i++) {
|
for (i = 1; i < 10; i++) {
|
||||||
/* meta down */
|
/* meta down */
|
||||||
@@ -339,6 +342,7 @@ test_filter_meta_extra_click(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
rc = draglock_init_from_string(&dl, "10");
|
rc = draglock_init_from_string(&dl, "10");
|
||||||
|
assert(rc == 0);
|
||||||
|
|
||||||
for (i = 1; i < 10; i++) {
|
for (i = 1; i < 10; i++) {
|
||||||
/* meta down */
|
/* meta down */
|
||||||
@@ -409,6 +413,7 @@ test_filter_meta_interleaved(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
rc = draglock_init_from_string(&dl, "10");
|
rc = draglock_init_from_string(&dl, "10");
|
||||||
|
assert(rc == 0);
|
||||||
|
|
||||||
for (i = 1; i < 10; i++) {
|
for (i = 1; i < 10; i++) {
|
||||||
/* meta down */
|
/* meta down */
|
||||||
@@ -467,6 +472,7 @@ test_filter_pairs(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
rc = draglock_init_from_string(&dl, "1 11 2 0 3 13 4 0 5 15 6 0 7 17 8 0 9 19");
|
rc = draglock_init_from_string(&dl, "1 11 2 0 3 13 4 0 5 15 6 0 7 17 8 0 9 19");
|
||||||
|
assert(rc == 0);
|
||||||
|
|
||||||
for (i = 1; i < 10; i++) {
|
for (i = 1; i < 10; i++) {
|
||||||
button = i;
|
button = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user