summaryrefslogtreecommitdiff
path: root/vchat-ui.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-17 16:12:46 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-17 16:12:46 +0200
commit1c04bbfea700a8a38719e9a30dd47b37bf609a3d (patch)
tree79e814b2594ae8b388f821ef6696cc85d1e74cf6 /vchat-ui.c
parent34a4541114318a7eda1c96ed58f83cdcd2622207 (diff)
Get rid of some warnings
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-xvchat-ui.c6
1 files changed, 5 insertions, 1 deletions
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;
112 112
113static void resize (int); 113static void resize (int);
114static void forceredraw (void); 114static void forceredraw (void);
115static void forceredraw_wrapper (int a) {forceredraw();} 115static void forceredraw_wrapper (int a) {(void)a; forceredraw();}
116static void drawwin (WINDOW *win, struct sb_data *sb); 116static void drawwin (WINDOW *win, struct sb_data *sb);
117static int writescr (WINDOW *win, struct sb_entry *entry); 117static int writescr (WINDOW *win, struct sb_entry *entry);
118static int testfilter ( struct sb_entry *entry); 118static int testfilter ( struct sb_entry *entry);
@@ -760,6 +760,7 @@ void
760resize (int signal) 760resize (int signal)
761{ 761{
762 int xsize,ysize,topicheight=topic?1:0; 762 int xsize,ysize,topicheight=topic?1:0;
763 (void)signal;
763 764
764 ttgtsz(&xsize,&ysize); 765 ttgtsz(&xsize,&ysize);
765 resizeterm(ysize,xsize); 766 resizeterm(ysize,xsize);
@@ -1383,6 +1384,8 @@ passprompt (char *buf, int size, int rwflag, void *userdata)
1383{ 1384{
1384 int i; 1385 int i;
1385 char *passphrase = NULL; 1386 char *passphrase = NULL;
1387 (void)rwflag;
1388 (void)userdata;
1386 1389
1387 /* use special non-revealing redraw function */ 1390 /* use special non-revealing redraw function */
1388 /* FIXME: passphrase isn't protected against e.g. swapping */ 1391 /* FIXME: passphrase isn't protected against e.g. swapping */
@@ -1476,6 +1479,7 @@ removefromfilterlist( int(*test)(filt *flt, void *data, char colour), void *data
1476 1479
1477static int 1480static int
1478test_clear( filt *flt, void *data, char c ) { 1481test_clear( filt *flt, void *data, char c ) {
1482 (void)data;
1479 if( !c || ( c == flt->colour ) || ( (c == '*') && (flt->colour != '-') && (flt->colour != '+') ) ) 1483 if( !c || ( c == flt->colour ) || ( (c == '*') && (flt->colour != '-') && (flt->colour != '+') ) )
1480 return RMFILTER_RMANDCONT; 1484 return RMFILTER_RMANDCONT;
1481 else 1485 else