mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Use ATTR_UNUSED instead of void casting
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user