diff --git a/src/curses/ui_call_flow.c b/src/curses/ui_call_flow.c index 29f5d64..1a8d51a 100644 --- a/src/curses/ui_call_flow.c +++ b/src/curses/ui_call_flow.c @@ -436,6 +436,9 @@ call_flow_draw_message(ui_t *ui, call_flow_arrow_t *arrow, int cline) int msglen; int aline = cline + 1; + // quell warning about unused variables (getmaxyx is a macro) + (void)floww; + // Initialize method memset(method, 0, sizeof(method)); @@ -680,6 +683,9 @@ call_flow_draw_rtp_stream(ui_t *ui, call_flow_arrow_t *arrow, int cline) call_flow_arrow_t *msgarrow; address_t addr; + // quell warning about unused variables (getmaxyx is a macro) + (void)width; + // Get panel information info = call_flow_info(ui); // Get the messages window @@ -1114,6 +1120,10 @@ call_flow_handle_key(ui_t *ui, int key) int rnpag_steps = setting_get_intvalue(SETTING_CF_SCROLLSTEP); int action = -1; + // quell warnings about unused variables (getmaxyx is a macro) + (void)height; + (void)width; + // Sanity check, this should not happen if (!info) return KEY_NOT_HANDLED; diff --git a/src/curses/ui_call_list.c b/src/curses/ui_call_list.c index f247182..c6682ba 100644 --- a/src/curses/ui_call_list.c +++ b/src/curses/ui_call_list.c @@ -566,6 +566,10 @@ call_list_handle_key(ui_t *ui, int key) sip_call_t *call, *xcall; sip_sort_t sort; + // quell warnings about unused variables (getmaxyx is a macro) + (void)listh; + (void)listw; + // Sanity check, this should not happen if (!(info = call_list_info(ui))) return -1; diff --git a/src/curses/ui_manager.c b/src/curses/ui_manager.c index 2358a84..dd02a8a 100644 --- a/src/curses/ui_manager.c +++ b/src/curses/ui_manager.c @@ -594,6 +594,9 @@ dialog_progress_set_value(WINDOW *win, int perc) { int height, width; + // quell warning about unused variables (getmaxyx is a macro) + (void)height; + getmaxyx(win, height, width); mvwhline(win, 4, 4, '-', width - 10); mvwaddch(win, 4, 3, '[');