forked from Mirrors/sngrep
fix compiler warnings about unused variables
This commit is contained in:
parent
ae8e0a4472
commit
6ea5fa4d31
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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, '[');
|
||||
|
|
Loading…
Reference in New Issue