Skip to content
Snippets Groups Projects
Commit f8f786bb authored by deuce's avatar deuce
Browse files

Fix Intel CC warnings.

parent ddd8d8e6
No related branches found
No related tags found
No related merge requests found
...@@ -553,7 +553,7 @@ void ciolib_gotoxy(int x, int y) ...@@ -553,7 +553,7 @@ void ciolib_gotoxy(int x, int y)
cio_api.gotoxy(nx,ny); cio_api.gotoxy(nx,ny);
} }
void ciolib_textmode(mode) void ciolib_textmode(int mode)
{ {
CIOLIB_INIT(); CIOLIB_INIT();
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
#define CONSOLE_CLIPBOARD XA_PRIMARY #define CONSOLE_CLIPBOARD XA_PRIMARY
#include <threadwrap.h>
#include <genwrap.h> #include <genwrap.h>
#include "console.h" #include "console.h"
...@@ -377,6 +378,8 @@ struct { ...@@ -377,6 +378,8 @@ struct {
#define HWM 16 #define HWM 16
void resize_window(void); void resize_window(void);
int KbdEmpty(void);
int load_font(char *filename, int width, int height, int scale);
void tty_pause() void tty_pause()
{ {
...@@ -513,7 +516,7 @@ void ...@@ -513,7 +516,7 @@ void
video_update() video_update()
{ {
static clock_t lastupd=-1; static clock_t lastupd=-1;
static clock_started=0; static int clock_started=0;
clock_t upd; clock_t upd;
upd=msclock(); upd=msclock();
...@@ -1671,7 +1674,7 @@ KbdRead() ...@@ -1671,7 +1674,7 @@ KbdRead()
} }
int int
KbdEmpty() KbdEmpty(void)
{ {
return(K_NEXT == K_FREE); return(K_NEXT == K_FREE);
} }
......
...@@ -82,6 +82,7 @@ int tty_peek(int flag); ...@@ -82,6 +82,7 @@ int tty_peek(int flag);
int tty_kbhit(void); int tty_kbhit(void);
void tty_beep(void); void tty_beep(void);
void x_win_title(const char *title); void x_win_title(const char *title);
int console_init(void);
#define TTYF_BLOCK 0x00000008 #define TTYF_BLOCK 0x00000008
#define TTYF_POLL 0x00000010 #define TTYF_POLL 0x00000010
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
* Note: If this box doesn't appear square, then you need to fix your tabs. * * Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/ ****************************************************************************/
#include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -1125,6 +1125,7 @@ int curs_hidemouse(void) ...@@ -1125,6 +1125,7 @@ int curs_hidemouse(void)
return(-1); return(-1);
#endif #endif
*/ */
return(-1);
} }
int curs_showmouse(void) int curs_showmouse(void)
...@@ -1136,4 +1137,5 @@ int curs_showmouse(void) ...@@ -1136,4 +1137,5 @@ int curs_showmouse(void)
#endif #endif
return(-1); return(-1);
*/ */
return(-1);
} }
...@@ -97,7 +97,7 @@ struct mouse_state { ...@@ -97,7 +97,7 @@ struct mouse_state {
struct mouse_state state; struct mouse_state state;
int mouse_events=0; int mouse_events=0;
static mouse_initialized=0; static int mouse_initialized=0;
void init_mouse(void) void init_mouse(void)
{ {
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
#include <threadwrap.h> #include <threadwrap.h>
...@@ -73,6 +74,7 @@ int x_puttext(int sx, int sy, int ex, int ey, void *fill) ...@@ -73,6 +74,7 @@ int x_puttext(int sx, int sy, int ex, int ey, void *fill)
vmem[y*DpyCols+x]=sch; vmem[y*DpyCols+x]=sch;
} }
} }
return(1);
} }
int x_gettext(int sx, int sy, int ex, int ey, void *fill) int x_gettext(int sx, int sy, int ex, int ey, void *fill)
...@@ -105,6 +107,7 @@ int x_gettext(int sx, int sy, int ex, int ey, void *fill) ...@@ -105,6 +107,7 @@ int x_gettext(int sx, int sy, int ex, int ey, void *fill)
*(out++)=sch >> 8; *(out++)=sch >> 8;
} }
} }
return(1);
} }
void x_textattr(int attr) void x_textattr(int attr)
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#ifdef __unix__ #ifdef __unix__
#include "ciolib.h" #include "ciolib.h"
#include "console.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment