1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 12:16:44 +02:00

Fix unused variable warnings and change all (void)s to UNUSED macro

This commit is contained in:
jfreegman
2020-03-30 12:56:42 -04:00
parent 46513017e3
commit ddc8c53abf
9 changed files with 32 additions and 14 deletions

View File

@ -270,7 +270,8 @@ static void line_info_check_queue(ToxWindow *self)
int y, y2, x, x2;
getmaxyx(self->window, y2, x2);
getyx(self->chatwin->history, y, x);
(void) x;
UNUSED_VAR(x);
if (x2 <= SIDEBAR_WIDTH) {
return;
@ -567,7 +568,9 @@ static void line_info_page_up(ToxWindow *self, struct history *hst)
{
int x2, y2;
getmaxyx(self->window, y2, x2);
(void) x2;
UNUSED_VAR(x2);
int jump_dist = y2 / 2;
int i;
@ -580,7 +583,9 @@ static void line_info_page_down(ToxWindow *self, struct history *hst)
{
int x2, y2;
getmaxyx(self->window, y2, x2);
(void) x2;
UNUSED_VAR(x2);
int jump_dist = y2 / 2;
int i;