mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 21:40:36 +01:00
tools: fix a few scan-build dead store warnings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b4cf6e9baf
commit
c1ab44c566
2 changed files with 4 additions and 4 deletions
|
|
@ -494,7 +494,7 @@ print_pointer_axis_event(struct libinput_event *ev)
|
|||
double v = 0, h = 0, v120 = 0, h120 = 0;
|
||||
const char *have_vert = "",
|
||||
*have_horiz = "";
|
||||
const char *source = "invalid";
|
||||
const char *source = NULL;
|
||||
enum libinput_pointer_axis axis;
|
||||
enum libinput_event_type type;
|
||||
|
||||
|
|
@ -746,7 +746,7 @@ static void
|
|||
print_tablet_pad_ring_event(struct libinput_event *ev)
|
||||
{
|
||||
struct libinput_event_tablet_pad *p = libinput_event_get_tablet_pad_event(ev);
|
||||
const char *source = "<invalid>";
|
||||
const char *source = NULL;
|
||||
unsigned int mode;
|
||||
|
||||
print_event_time(libinput_event_tablet_pad_get_time(p));
|
||||
|
|
@ -772,7 +772,7 @@ static void
|
|||
print_tablet_pad_strip_event(struct libinput_event *ev)
|
||||
{
|
||||
struct libinput_event_tablet_pad *p = libinput_event_get_tablet_pad_event(ev);
|
||||
const char *source = "<invalid>";
|
||||
const char *source = NULL;
|
||||
unsigned int mode;
|
||||
|
||||
print_event_time(libinput_event_tablet_pad_get_time(p));
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ log_handler(struct libinput *this_is_null,
|
|||
FILE *out = stdout;
|
||||
enum quirks_log_priorities p = (enum quirks_log_priorities)priority;
|
||||
char buf[256] = {0};
|
||||
const char *prefix = "";
|
||||
const char *prefix = NULL;
|
||||
|
||||
switch (p) {
|
||||
case QLOG_NOISE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue