Add unused attributes to avoid compiler warnings

This commit is contained in:
Werner Sembach 2023-05-31 14:14:14 +02:00
parent 06f0798162
commit 52cf510303
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ static struct uniwill_device_features_t *uw_feats;
/** /**
* strstr version of dmi_match * 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); const char *info = dmi_get_system_info(f);

View file

@ -785,7 +785,7 @@ static int uw_has_charging_profile(bool *status)
return 0; 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) if (uw_charging_profile_loaded)
uw_set_charging_profile(uw_charging_profile_last_written_value); uw_set_charging_profile(uw_charging_profile_last_written_value);