From 52cf5103036b84dcebd228bea9beb5a73c6313e5 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 31 May 2023 14:14:14 +0200 Subject: [PATCH] Add unused attributes to avoid compiler warnings --- src/tuxedo_io/tuxedo_io.c | 2 +- src/uniwill_keyboard.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 92ea34c..1d4b01e 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -52,7 +52,7 @@ static struct uniwill_device_features_t *uw_feats; /** * strstr version of dmi_match */ -static bool dmi_string_in(enum dmi_field f, const char *str) +static bool __attribute__ ((unused)) dmi_string_in(enum dmi_field f, const char *str) { const char *info = dmi_get_system_info(f); diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index d123a44..5dd1ae5 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -785,7 +785,7 @@ static int uw_has_charging_profile(bool *status) return 0; } -static void uw_charging_profile_write_state(void) +static void __attribute__ ((unused)) uw_charging_profile_write_state(void) { if (uw_charging_profile_loaded) uw_set_charging_profile(uw_charging_profile_last_written_value);