mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
test: fix uninitialized variables
Fix the warnings generated: [232/243] Compiling C object libinput-test-suite.p/test_test-pad.c.o ../test/test-pad.c:211:3: warning: variable 'count' is uninitialized when used here [-Wuninitialized] count++; ^~~~~ ../test/test-pad.c:261:3: warning: variable 'count' is uninitialized when used here [-Wuninitialized] count++; ^~~~~ When building with Clang v15 and without libwacom: $ CC=clang CXX=clang++ meson builddir -Dlibwacom=false Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
parent
3726de351d
commit
41e61c1c13
1 changed files with 2 additions and 2 deletions
|
|
@ -183,7 +183,7 @@ START_TEST(pad_button_intuos)
|
|||
unsigned int expected_number = 0;
|
||||
struct libinput_event *ev;
|
||||
struct libinput_event_tablet_pad *pev;
|
||||
unsigned int count;
|
||||
unsigned int count = 0;
|
||||
|
||||
/* Intuos button mapping is sequential up from BTN_0 and continues
|
||||
* with BTN_A */
|
||||
|
|
@ -243,7 +243,7 @@ START_TEST(pad_button_bamboo)
|
|||
unsigned int expected_number = 0;
|
||||
struct libinput_event *ev;
|
||||
struct libinput_event_tablet_pad *pev;
|
||||
unsigned int count;
|
||||
unsigned int count = 0;
|
||||
|
||||
if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue