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

@ -387,9 +387,7 @@ static void LEDMeterMode_drawDigit(int x, int y, int n) {
mvaddstr(y+i, x, LEDMeterMode_digits[i * 10 + n]);
}
static void LEDMeterMode_draw(Meter* this, int x, int y, int w) {
(void) w;
static void LEDMeterMode_draw(Meter* this, int x, int y, ATTR_UNUSED int w) {
#ifdef HAVE_LIBNCURSESW
if (CRT_utf8)
LEDMeterMode_digits = LEDMeterMode_digitsUtf8;