tools/libevdev-tweak-device.c:390: uninit_use_in_call: Using uninitialized
value "changes" when calling "parse_options_abs".
tools/libevdev-tweak-device.c:376: warning: 'led' may be used uninitialized in
this function
tools/libevdev-tweak-device.c:375: warning: 'axis' may be used uninitialized
in this function
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
enum mode mode;
const char *path;
struct input_absinfo absinfo;
- int axis;
- int led;
+ int axis = -1;
+ int led = -1;
int led_state = -1;
- unsigned int changes; /* bitmask of changes */
- int xres, yres;
+ unsigned int changes = 0; /* bitmask of changes */
+ int xres = 0,
+ yres = 0;
mode = parse_options_mode(argc, argv, &path);
switch (mode) {