mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 14:00:06 +01:00
test: initialize a variable to make scan-build happy
Assuming safe_atoi works as expected, `fuzz` cannot be
uninitialized by the time we get here. But let's init it anyway to make
scan-build happy.
[202/249] Compiling C object libinput-test-suite.p/test_test-touch.c.o
../../../test/test-touch.c:964:2: warning: Assigned value is garbage or undefined [core.uninitialized.Assign]
964 | litest_assert_int_eq(fuzz, 10); /* device-specific */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note that this error message is the result of a follow-up commit,
this commit is shuffled before so we have bisectable build.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1059>
This commit is contained in:
parent
3ed70e864f
commit
84f96de974
1 changed files with 1 additions and 1 deletions
|
|
@ -952,7 +952,7 @@ START_TEST(touch_fuzz_property)
|
|||
struct litest_device *dev = litest_current_device();
|
||||
struct udev_device *d;
|
||||
const char *prop;
|
||||
int fuzz;
|
||||
int fuzz = 0;
|
||||
|
||||
ck_assert_int_eq(libevdev_get_abs_fuzz(dev->evdev, ABS_X), 0);
|
||||
ck_assert_int_eq(libevdev_get_abs_fuzz(dev->evdev, ABS_Y), 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue