Use ATTR_UNUSED instead of void casting

This commit is contained in:
Christian Göttsche
2020-12-20 01:25:09 +01:00
parent a40347e85b
commit df818b9904
4 changed files with 4 additions and 9 deletions

View File

@ -19,8 +19,7 @@ static const int HostnameMeter_attributes[] = {
HOSTNAME
};
static void HostnameMeter_updateValues(Meter* this, char* buffer, size_t size) {
(void) this;
static void HostnameMeter_updateValues(ATTR_UNUSED Meter* this, char* buffer, size_t size) {
gethostname(buffer, size - 1);
}