From 5158d80cfa9bb4fb4271f73ba7515a03b6c2d699 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Fri, 24 Feb 2023 23:09:32 +0300 Subject: [PATCH] G600: prevent unused variable usage warning --- src/driver-logitech-g600.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver-logitech-g600.c b/src/driver-logitech-g600.c index 0d9a2c99..1d8acd08 100644 --- a/src/driver-logitech-g600.c +++ b/src/driver-logitech-g600.c @@ -446,6 +446,10 @@ logitech_g600_read_profile(struct ratbag_profile *profile) case 0: report_id = LOGITECH_G600_REPORT_ID_PROFILE_0; break; case 1: report_id = LOGITECH_G600_REPORT_ID_PROFILE_1; break; case 2: report_id = LOGITECH_G600_REPORT_ID_PROFILE_2; break; + default: + /* Should've been handled by the assertion above. */ + abort(); + break; } rc = ratbag_hidraw_raw_request(device, report_id,