From 1c04bbfea700a8a38719e9a30dd47b37bf609a3d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 17 May 2022 16:12:46 +0200 Subject: Get rid of some warnings --- vchat-ui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vchat-ui.c') diff --git a/vchat-ui.c b/vchat-ui.c index 745ada8..0295f2a 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -112,7 +112,7 @@ static int currentstamp = 0; static void resize (int); static void forceredraw (void); -static void forceredraw_wrapper (int a) {forceredraw();} +static void forceredraw_wrapper (int a) {(void)a; forceredraw();} static void drawwin (WINDOW *win, struct sb_data *sb); static int writescr (WINDOW *win, struct sb_entry *entry); static int testfilter ( struct sb_entry *entry); @@ -760,6 +760,7 @@ void resize (int signal) { int xsize,ysize,topicheight=topic?1:0; + (void)signal; ttgtsz(&xsize,&ysize); resizeterm(ysize,xsize); @@ -1383,6 +1384,8 @@ passprompt (char *buf, int size, int rwflag, void *userdata) { int i; char *passphrase = NULL; + (void)rwflag; + (void)userdata; /* use special non-revealing redraw function */ /* FIXME: passphrase isn't protected against e.g. swapping */ @@ -1476,6 +1479,7 @@ removefromfilterlist( int(*test)(filt *flt, void *data, char colour), void *data static int test_clear( filt *flt, void *data, char c ) { + (void)data; if( !c || ( c == flt->colour ) || ( (c == '*') && (flt->colour != '-') && (flt->colour != '+') ) ) return RMFILTER_RMANDCONT; else -- cgit v1.2.3