From b38e3ddf8c301176afb1419493dd7c0b7a72d7f3 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 12 Feb 2009 07:21:23 +0000 Subject: [PATCH] Fix warnings. --- src/conio/ansi_cio.c | 5 +++-- src/conio/bitmap_con.c | 2 +- src/conio/win32cio.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c index 88c882f6c3..aad393d5b4 100644 --- a/src/conio/ansi_cio.c +++ b/src/conio/ansi_cio.c @@ -916,12 +916,12 @@ int ansi_readbyte_cb(void) int ansi_writebyte_cb(unsigned char ch) { - fwrite(&ch,1,1,stdout); + return(fwrite(&ch,1,1,stdout)); } int ansi_writestr_cb(unsigned char *str, size_t len) { - fwrite(str,len,1,stdout); + return(fwrite(str,len,1,stdout)); } int ansi_initio_cb(void) @@ -954,6 +954,7 @@ int ansi_initio_cb(void) atexit(ansi_fixterm); } #endif + return(0); } #if defined(__BORLANDC__) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index ef8be5ad3a..4cf4c508cd 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -703,7 +703,7 @@ error_return: } /* vstatlock is held */ -static void bitmap_draw_cursor() +static void bitmap_draw_cursor(void) { int x; int y; diff --git a/src/conio/win32cio.c b/src/conio/win32cio.c index 234e997070..8b5e931830 100644 --- a/src/conio/win32cio.c +++ b/src/conio/win32cio.c @@ -833,7 +833,7 @@ void win32_getcustomcursor(int *s, int *e, int *r, int *b, int *v) HANDLE h; if((h=GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) - return(0); + return; GetConsoleCursorInfo(h, &ci); if(s) @@ -854,7 +854,7 @@ void win32_setcustomcursor(int s, int e, int r, int b, int v) HANDLE h; if((h=GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) - return(0); + return; ci.bVisible=v; if(e>s) -- GitLab