diff options
author | zakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-02 20:13:47 +0000 |
---|---|---|
committer | zakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-02 20:13:47 +0000 |
commit | 122fe646235067bae2a620f877a6d76af067d7f3 (patch) | |
tree | 136082c7dd759e9bb4cfab0a1668d3b43af984c1 /code/unix | |
parent | f5de4773415589c3e6ed64f9f67479b4f8bb9668 (diff) | |
download | ioquake3-aero-122fe646235067bae2a620f877a6d76af067d7f3.tar.gz ioquake3-aero-122fe646235067bae2a620f877a6d76af067d7f3.zip |
Cleanups from pomac!
git-svn-id: svn://svn.icculus.org/quake3/trunk@67 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r-- | code/unix/Makefile | 3 | ||||
-rw-r--r-- | code/unix/sdl_glimp.c | 2 | ||||
-rw-r--r-- | code/unix/unix_main.c | 18 |
3 files changed, 12 insertions, 11 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile index 4cbad3b..6e428b1 100644 --- a/code/unix/Makefile +++ b/code/unix/Makefile @@ -120,7 +120,8 @@ ifeq ($(PLATFORM),linux) # bk001205: no mo' -I/usr/include/glide, no FX # bk001205: no mo' -Dstricmp=strcasecmp, see q_shared.h - BASE_CFLAGS = -pipe -Wall + BASE_CFLAGS = -pipe -Wall -Wimplicit -Wstrict-prototypes + #BASE_CFLAGS += -Werror # Disabled due to #warning usage. # rcg010216: DLL_ONLY for PPC ifeq ($(strip $(DLL_ONLY)),true) BASE_CFLAGS += -DDLL_ONLY diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c index d11c42d..47ec86d 100644 --- a/code/unix/sdl_glimp.c +++ b/code/unix/sdl_glimp.c @@ -803,7 +803,7 @@ static void GLW_InitExtensions( void ) } -static void GLW_InitGamma() +static void GLW_InitGamma( void ) { glConfig.deviceSupportsGamma = qtrue; } diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c index 91397ac..a242c2d 100644 --- a/code/unix/unix_main.c +++ b/code/unix/unix_main.c @@ -163,7 +163,7 @@ void Sys_In_Restart_f( void ) // flush stdin, I suspect some terminals are sending a LOT of shit // FIXME TTimo relevant? -void tty_FlushIn() +void tty_FlushIn( void ) { char key; while (read(0, &key, 1)!=-1); @@ -173,7 +173,7 @@ void tty_FlushIn() // TTimo NOTE: it seems on some terminals just sending '\b' is not enough // so for now, in any case we send "\b \b" .. yeah well .. // (there may be a way to find out if '\b' alone would work though) -void tty_Back() +void tty_Back( void ) { char key; key = '\b'; @@ -186,7 +186,7 @@ void tty_Back() // clear the display of the line currently edited // bring cursor back to beginning of line -void tty_Hide() +void tty_Hide( void ) { int i; assert(ttycon_on); @@ -207,7 +207,7 @@ void tty_Hide() // show the current line // FIXME TTimo need to position the cursor if needed?? -void tty_Show() +void tty_Show( void ) { int i; assert(ttycon_on); @@ -226,7 +226,7 @@ void tty_Show() } // never exit without calling this, or your terminal will be left in a pretty bad state -void Sys_ConsoleInputShutdown() +void Sys_ConsoleInputShutdown( void ) { if (ttycon_on) { @@ -255,7 +255,7 @@ void Hist_Add(field_t *field) hist_current = -1; // re-init } -field_t *Hist_Prev() +field_t *Hist_Prev( void ) { int hist_prev; assert(hist_count <= TTY_HISTORY); @@ -271,7 +271,7 @@ field_t *Hist_Prev() return &(ttyEditLines[hist_current]); } -field_t *Hist_Next() +field_t *Hist_Next( void ) { assert(hist_count <= TTY_HISTORY); assert(hist_count >= 0); @@ -473,7 +473,7 @@ void floating_point_exception_handler(int whatever) } // initialize the console input (tty mode if wanted and possible) -void Sys_ConsoleInputInit() +void Sys_ConsoleInputInit( void ) { struct termios tc; @@ -1193,7 +1193,7 @@ void Sys_Print( const char *msg ) } -void Sys_ConfigureFPU() { // bk001213 - divide by zero +void Sys_ConfigureFPU( void ) { // bk001213 - divide by zero #ifdef __linux__ #ifdef __i386 #ifndef NDEBUG |