diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2023-04-20 09:35:17 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2023-04-20 09:51:49 +1000 |
commit | c1ab44c566bda918f7282d9f5fe6496d009c69a6 (patch) | |
tree | 1c6f8959473cd0404f516a26b55db3a73637b75e | |
parent | b4cf6e9baf7f9699c339d8302a4e9f694aaa7e89 (diff) | |
download | libinput-c1ab44c566bda918f7282d9f5fe6496d009c69a6.tar.gz |
tools: fix a few scan-build dead store warnings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | tools/libinput-debug-events.c | 6 | ||||
-rw-r--r-- | tools/libinput-quirks.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c index 9034e2cd..c4877c62 100644 --- a/tools/libinput-debug-events.c +++ b/tools/libinput-debug-events.c @@ -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)); diff --git a/tools/libinput-quirks.c b/tools/libinput-quirks.c index e97eff68..cf3be9bd 100644 --- a/tools/libinput-quirks.c +++ b/tools/libinput-quirks.c @@ -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: |