From: divverent Date: Thu, 20 Aug 2009 07:36:16 +0000 (+0000) Subject: fix all the () problems, and make gcc warn for them X-Git-Tag: xonotic-v0.1.0preview~1495 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=321a67123284c38c22f8edd418913615ee0c2682;p=xonotic%2Fdarkplaces.git fix all the () problems, and make gcc warn for them git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9134 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cap_avi.c b/cap_avi.c index 623be4ea..1292f126 100644 --- a/cap_avi.c +++ b/cap_avi.c @@ -403,7 +403,7 @@ static void SCR_CaptureVideo_Avi_VideoFrames(int num) } } -void SCR_CaptureVideo_Avi_EndVideo() +void SCR_CaptureVideo_Avi_EndVideo(void) { LOAD_FORMATSPECIFIC_AVI(); @@ -494,7 +494,7 @@ void SCR_CaptureVideo_Avi_SoundFrame(const portable_sampleframe_t *paintbuffer, } } -void SCR_CaptureVideo_Avi_BeginVideo() +void SCR_CaptureVideo_Avi_BeginVideo(void) { int width = cls.capturevideo.width; int height = cls.capturevideo.height; diff --git a/cap_avi.h b/cap_avi.h index 29b294f0..2cf15d6a 100644 --- a/cap_avi.h +++ b/cap_avi.h @@ -1 +1 @@ -void SCR_CaptureVideo_Avi_BeginVideo(); +void SCR_CaptureVideo_Avi_BeginVideo(void); diff --git a/cap_ogg.c b/cap_ogg.c index 89a09fbd..9382bb56 100644 --- a/cap_ogg.c +++ b/cap_ogg.c @@ -517,7 +517,7 @@ static dllfunction_t theorafuncs[] = static dllhandle_t og_dll = NULL, vo_dll = NULL, ve_dll = NULL, th_dll = NULL; -qboolean SCR_CaptureVideo_Ogg_OpenLibrary() +qboolean SCR_CaptureVideo_Ogg_OpenLibrary(void) { const char* dllnames_og [] = { @@ -590,7 +590,7 @@ qboolean SCR_CaptureVideo_Ogg_OpenLibrary() Sys_LoadLibrary (dllnames_ve, &ve_dll, vorbisencfuncs); } -void SCR_CaptureVideo_Ogg_Init() +void SCR_CaptureVideo_Ogg_Init(void) { SCR_CaptureVideo_Ogg_OpenLibrary(); @@ -604,12 +604,12 @@ void SCR_CaptureVideo_Ogg_Init() Cvar_RegisterVariable(&cl_capturevideo_ogg_vorbis_quality); } -qboolean SCR_CaptureVideo_Ogg_Available() +qboolean SCR_CaptureVideo_Ogg_Available(void) { return og_dll && th_dll && vo_dll && ve_dll; } -void SCR_CaptureVideo_Ogg_CloseDLL() +void SCR_CaptureVideo_Ogg_CloseDLL(void) { Sys_UnloadLibrary (&ve_dll); Sys_UnloadLibrary (&vo_dll); @@ -650,7 +650,7 @@ typedef struct capturevideostate_ogg_formatspecific_s capturevideostate_ogg_formatspecific_t; #define LOAD_FORMATSPECIFIC_OGG() capturevideostate_ogg_formatspecific_t *format = (capturevideostate_ogg_formatspecific_t *) cls.capturevideo.formatspecific -static void SCR_CaptureVideo_Ogg_Interleave() +static void SCR_CaptureVideo_Ogg_Interleave(void) { LOAD_FORMATSPECIFIC_OGG(); ogg_page pg; @@ -708,7 +708,7 @@ static void SCR_CaptureVideo_Ogg_Interleave() } } -static void SCR_CaptureVideo_Ogg_FlushInterleaving() +static void SCR_CaptureVideo_Ogg_FlushInterleaving(void) { LOAD_FORMATSPECIFIC_OGG(); @@ -726,7 +726,7 @@ static void SCR_CaptureVideo_Ogg_FlushInterleaving() } } -static void SCR_CaptureVideo_Ogg_EndVideo() +static void SCR_CaptureVideo_Ogg_EndVideo(void) { LOAD_FORMATSPECIFIC_OGG(); ogg_page pg; @@ -819,7 +819,7 @@ static void SCR_CaptureVideo_Ogg_EndVideo() cls.capturevideo.videofile = NULL; } -static void SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV() +static void SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV(void) { LOAD_FORMATSPECIFIC_OGG(); yuv_buffer *yuv; @@ -932,7 +932,7 @@ static void SCR_CaptureVideo_Ogg_SoundFrame(const portable_sampleframe_t *paintb SCR_CaptureVideo_Ogg_Interleave(); } -void SCR_CaptureVideo_Ogg_BeginVideo() +void SCR_CaptureVideo_Ogg_BeginVideo(void) { cls.capturevideo.format = CAPTUREVIDEOFORMAT_OGG_VORBIS_THEORA; cls.capturevideo.formatextension = "ogv"; diff --git a/cap_ogg.h b/cap_ogg.h index a6f4bd08..81718f2a 100644 --- a/cap_ogg.h +++ b/cap_ogg.h @@ -1,4 +1,4 @@ -void SCR_CaptureVideo_Ogg_Init(); -qboolean SCR_CaptureVideo_Ogg_Available(); -void SCR_CaptureVideo_Ogg_BeginVideo(); -void SCR_CaptureVideo_Ogg_CloseDLL(); +void SCR_CaptureVideo_Ogg_Init(void); +qboolean SCR_CaptureVideo_Ogg_Available(void); +void SCR_CaptureVideo_Ogg_BeginVideo(void); +void SCR_CaptureVideo_Ogg_CloseDLL(void); diff --git a/cd_shared.c b/cd_shared.c index 5422d074..7706e91c 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -306,7 +306,7 @@ void CDAudio_Play (int track, qboolean looping) CDAudio_Play_byName(buf, looping); } -float CDAudio_GetPosition () +float CDAudio_GetPosition (void) { if(faketrack != -1) return S_GetChannelPosition(faketrack); diff --git a/cl_screen.c b/cl_screen.c index 546e34de..ae6e0571 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -559,7 +559,7 @@ static int SCR_DrawCurlDownload(int offset) SCR_DrawInfobar ============== */ -static void SCR_DrawInfobar() +static void SCR_DrawInfobar(void) { int offset = 0; if(scr_infobartime_off > 0) @@ -570,7 +570,7 @@ static void SCR_DrawInfobar() Con_DPrintf("broken console margin calculation: %d != %d\n", offset, scr_con_margin_bottom); } -static int SCR_InfobarHeight() +static int SCR_InfobarHeight(void) { int offset = 0; Curl_downloadinfo_t *downinfo; @@ -1637,7 +1637,7 @@ rtexture_t *loadingscreentexture = NULL; static float loadingscreentexture_vertex3f[12]; static float loadingscreentexture_texcoord2f[8]; -static void SCR_ClearLoadingScreenTexture() +static void SCR_ClearLoadingScreenTexture(void) { if(loadingscreentexture) R_FreeTexture(loadingscreentexture); @@ -1645,7 +1645,7 @@ static void SCR_ClearLoadingScreenTexture() } extern rtexturepool_t *r_main_texturepool; -static void SCR_SetLoadingScreenTexture() +static void SCR_SetLoadingScreenTexture(void) { int w, h; float loadingscreentexture_w; @@ -1682,7 +1682,7 @@ static void SCR_SetLoadingScreenTexture() loadingscreentexture_texcoord2f[6] = 0;loadingscreentexture_texcoord2f[7] = 0; } -void SCR_UpdateLoadingScreenIfShown() +void SCR_UpdateLoadingScreenIfShown(void) { if(realtime == loadingscreentime) SCR_UpdateLoadingScreen(loadingscreencleared); @@ -1776,7 +1776,7 @@ static float SCR_DrawLoadingStack_r(loadingscreenstack_t *s, float y) return total; } -static void SCR_DrawLoadingStack() +static void SCR_DrawLoadingStack(void) { float verts[12]; float colors[16]; diff --git a/client.h b/client.h index 1fcaa400..dc37e938 100644 --- a/client.h +++ b/client.h @@ -498,7 +498,7 @@ typedef struct capturevideostate_s qfile_t *videofile; // always use this: // cls.capturevideo.videofile = FS_OpenRealFile(va("%s.%s", cls.capturevideo.basename, cls.capturevideo.formatextension), "wb", false); - void (*endvideo) (); + void (*endvideo) (void); void (*videoframes) (int num); void (*soundframe) (const portable_sampleframe_t *paintbuffer, size_t length); diff --git a/console.c b/console.c index cdeff90a..fc29e5f7 100644 --- a/console.c +++ b/console.c @@ -331,7 +331,7 @@ void Log_ConPrint (const char *msg); Log_DestBuffer_Init ==================== */ -static void Log_DestBuffer_Init() +static void Log_DestBuffer_Init(void) { memcpy(log_dest_buffer, "\377\377\377\377n", 5); // QW rcon print log_dest_buffer_pos = 5; @@ -342,7 +342,7 @@ static void Log_DestBuffer_Init() Log_DestBuffer_Flush ==================== */ -void Log_DestBuffer_Flush() +void Log_DestBuffer_Flush(void) { lhnetaddress_t log_dest_addr; lhnetsocket_t *log_dest_socket; @@ -881,7 +881,7 @@ void Con_Rcon_Redirect_Init(lhnetsocket_t *sock, lhnetaddress_t *dest) rcon_redirect_bufferpos = 5; } -void Con_Rcon_Redirect_Flush() +void Con_Rcon_Redirect_Flush(void) { rcon_redirect_buffer[rcon_redirect_bufferpos] = 0; NetConn_WriteString(rcon_redirect_sock, rcon_redirect_buffer, rcon_redirect_dest); @@ -889,14 +889,14 @@ void Con_Rcon_Redirect_Flush() rcon_redirect_bufferpos = 5; } -void Con_Rcon_Redirect_End() +void Con_Rcon_Redirect_End(void) { Con_Rcon_Redirect_Flush(); rcon_redirect_dest = NULL; rcon_redirect_sock = NULL; } -void Con_Rcon_Redirect_Abort() +void Con_Rcon_Redirect_Abort(void) { rcon_redirect_dest = NULL; rcon_redirect_sock = NULL; diff --git a/console.h b/console.h index 10009bf1..438e9ca2 100644 --- a/console.h +++ b/console.h @@ -29,8 +29,8 @@ extern int con_backscroll; extern qboolean con_initialized; void Con_Rcon_Redirect_Init(lhnetsocket_t *sock, lhnetaddress_t *dest); -void Con_Rcon_Redirect_End(); -void Con_Rcon_Redirect_Abort(); +void Con_Rcon_Redirect_End(void); +void Con_Rcon_Redirect_Abort(void); /// If the line width has changed, reformat the buffer. void Con_CheckResize (void); diff --git a/fs.c b/fs.c index 0782cf52..a0322675 100644 --- a/fs.c +++ b/fs.c @@ -1456,7 +1456,7 @@ const char *FS_CheckGameDir(const char *gamedir) return fs_checkgamedir_missing; } -static void FS_ListGameDirs() +static void FS_ListGameDirs(void) { stringlist_t list, list2; int i, j; diff --git a/host.c b/host.c index 8d1eba31..f01795af 100644 --- a/host.c +++ b/host.c @@ -587,7 +587,7 @@ Host_TimeReport Returns a time report string, for example for ================== */ -const char *Host_TimingReport() +const char *Host_TimingReport(void) { return va("%.1f%% CPU, %.2f%% lost, offset avg %.1fms, max %.1fms, sdev %.1fms", svs.perf_cpuload * 100, svs.perf_lost * 100, svs.perf_offset_avg * 1000, svs.perf_offset_max * 1000, svs.perf_offset_sdev * 1000); } diff --git a/jpeg.c b/jpeg.c index 5d09b498..bdcfdc40 100644 --- a/jpeg.c +++ b/jpeg.c @@ -99,6 +99,7 @@ typedef unsigned int JDIMENSION; #define C_MAX_BLOCKS_IN_MCU 10 #define D_MAX_BLOCKS_IN_MCU 10 +#pragma GCC diagnostic ignored "-Wstrict-prototypes" struct jpeg_memory_mgr { void* (*alloc_small) (j_common_ptr cinfo, int pool_id, size_t sizeofobject); @@ -116,6 +117,7 @@ struct jpeg_memory_mgr long max_memory_to_use; long max_alloc_chunk; }; +#pragma GCC diagnostic warning "-Wstrict-prototypes" struct jpeg_error_mgr { diff --git a/keys.c b/keys.c index 8214d157..ce220b42 100644 --- a/keys.c +++ b/keys.c @@ -44,7 +44,7 @@ conbuffer_t history; extern cvar_t con_textsize; -static void Key_History_Init() +static void Key_History_Init(void) { qfile_t *historyfile; ConBuffer_Init(&history, HIST_TEXTSIZE, HIST_MAXLINES, zonemempool); @@ -84,7 +84,7 @@ static void Key_History_Init() history_line = -1; } -static void Key_History_Shutdown() +static void Key_History_Shutdown(void) { // TODO write history to a file @@ -100,7 +100,7 @@ static void Key_History_Shutdown() ConBuffer_Shutdown(&history); } -static void Key_History_Push() +static void Key_History_Push(void) { if(key_line[1]) // empty? if(strcmp(key_line, "]quit")) // putting these into the history just sucks @@ -110,7 +110,7 @@ static void Key_History_Push() history_line = -1; } -static void Key_History_Up() +static void Key_History_Up(void) { if(history_line == -1) // editing the "new" line strlcpy(history_savedline, key_line + 1, sizeof(history_savedline)); @@ -132,7 +132,7 @@ static void Key_History_Up() } } -static void Key_History_Down() +static void Key_History_Down(void) { if(history_line == -1) // editing the "new" line return; diff --git a/libcurl.c b/libcurl.c index 0d3f6c7c..1d261cd6 100644 --- a/libcurl.c +++ b/libcurl.c @@ -128,15 +128,15 @@ typedef struct CURLMsg; static void (*qcurl_global_init) (long flags); -static void (*qcurl_global_cleanup) (); +static void (*qcurl_global_cleanup) (void); -static CURL * (*qcurl_easy_init) (); +static CURL * (*qcurl_easy_init) (void); static void (*qcurl_easy_cleanup) (CURL *handle); static CURLcode (*qcurl_easy_setopt) (CURL *handle, CURLoption option, ...); static CURLcode (*qcurl_easy_getinfo) (CURL *handle, CURLINFO info, ...); static const char * (*qcurl_easy_strerror) (CURLcode); -static CURLM * (*qcurl_multi_init) (); +static CURLM * (*qcurl_multi_init) (void); static CURLMcode (*qcurl_multi_perform) (CURLM *multi_handle, int *running_handles); static CURLMcode (*qcurl_multi_add_handle) (CURLM *multi_handle, CURL *easy_handle); static CURLMcode (*qcurl_multi_remove_handle) (CURLM *multi_handle, CURL *easy_handle); @@ -240,7 +240,7 @@ Curl_Clear_forthismap Clears the "will disconnect on failure" flags. ==================== */ -void Curl_Clear_forthismap() +void Curl_Clear_forthismap(void) { downloadinfo *di; if(noclear) @@ -261,12 +261,12 @@ Curl_Have_forthismap Returns true if a download needed for the current game is running. ==================== */ -qboolean Curl_Have_forthismap() +qboolean Curl_Have_forthismap(void) { return numdownloads_added; } -void Curl_Register_predownload() +void Curl_Register_predownload(void) { Curl_CommandWhenDone("cl_begindownloads"); Curl_CommandWhenError("cl_begindownloads"); @@ -280,7 +280,7 @@ Checks if a "done command" is to be executed. All downloads finished, at least one success since connect, no single failure -> execute the command. */ -static void Curl_CheckCommandWhenDone() +static void Curl_CheckCommandWhenDone(void) { if(!curl_dll) return; @@ -539,7 +539,7 @@ To not start too many downloads at once, only one download is added at a time, up to a maximum number of cl_curl_maxdownloads are running. ==================== */ -static void CheckPendingDownloads() +static void CheckPendingDownloads(void) { if(!curl_dll) return; @@ -603,7 +603,7 @@ this function MUST be called before using anything else in this file. On Win32, this must be called AFTER WSAStartup has been done! ==================== */ -void Curl_Init() +void Curl_Init(void) { CURL_OpenLibrary(); if(!curl_dll) @@ -619,8 +619,8 @@ Curl_Shutdown Surprise... closes all the stuff. Please do this BEFORE shutting down LHNET. ==================== */ -void Curl_ClearRequirements(); -void Curl_Shutdown() +void Curl_ClearRequirements(void); +void Curl_Shutdown(void) { if(!curl_dll) return; @@ -852,7 +852,7 @@ call this regularily as this will always download as much as possible without blocking. ==================== */ -void Curl_Run() +void Curl_Run(void) { noclear = FALSE; @@ -937,7 +937,7 @@ Curl_CancelAll Stops ALL downloads. ==================== */ -void Curl_CancelAll() +void Curl_CancelAll(void) { if(!curl_dll) return; @@ -956,7 +956,7 @@ Curl_Running returns true iff there is a download running. ==================== */ -qboolean Curl_Running() +qboolean Curl_Running(void) { if(!curl_dll) return false; @@ -1018,7 +1018,7 @@ prints the download list ==================== */ // TODO rewrite using Curl_GetDownloadInfo? -static void Curl_Info_f() +static void Curl_Info_f(void) { downloadinfo *di; if(!curl_dll) @@ -1418,7 +1418,7 @@ Clears the list of required files for playing on the current map. This should be called at every map change. ==================== */ -void Curl_ClearRequirements() +void Curl_ClearRequirements(void) { const char *p; while(requirements) @@ -1448,7 +1448,7 @@ This is done by sending him the following console commands: curl --finish_autodownload ==================== */ -void Curl_SendRequirements() +void Curl_SendRequirements(void) { // for each requirement, find the pack name char sendbuffer[4096] = ""; diff --git a/libcurl.h b/libcurl.h index f8de728e..63500a46 100644 --- a/libcurl.h +++ b/libcurl.h @@ -9,24 +9,24 @@ enum typedef void (*curl_callback_t) (int status, size_t length_received, unsigned char *buffer, void *cbdata); // code is one of the CURLCBSTATUS constants, or the HTTP error code (when > 0). -void Curl_Run(); -qboolean Curl_Running(); +void Curl_Run(void); +qboolean Curl_Running(void); qboolean Curl_Begin_ToFile(const char *URL, const char *name, qboolean ispak, qboolean forthismap); qboolean Curl_Begin_ToMemory(const char *URL, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata); // NOTE: if it returns false, the callback will NOT get called, so free your buffer then! void Curl_Cancel_ToMemory(curl_callback_t callback, void *cbdata); // removes all downloads with the given callback and cbdata (this does NOT call the callbacks!) -void Curl_Init(); -void Curl_Init_Commands(); -void Curl_Shutdown(); -void Curl_CancelAll(); -void Curl_Clear_forthismap(); -qboolean Curl_Have_forthismap(); -void Curl_Register_predownload(); +void Curl_Init(void); +void Curl_Init_Commands(void); +void Curl_Shutdown(void); +void Curl_CancelAll(void); +void Curl_Clear_forthismap(void); +qboolean Curl_Have_forthismap(void); +void Curl_Register_predownload(void); -void Curl_ClearRequirements(); +void Curl_ClearRequirements(void); void Curl_RequireFile(const char *filename); -void Curl_SendRequirements(); +void Curl_SendRequirements(void); typedef struct Curl_downloadinfo_s { diff --git a/makefile.inc b/makefile.inc index 486bfeeb..c04d1447 100644 --- a/makefile.inc +++ b/makefile.inc @@ -164,7 +164,7 @@ OBJ_SDL= builddate.c sys_sdl.o vid_sdl.o $(OBJ_SND_COMMON) snd_sdl.o cd_sdl.o $( # Compilation -CFLAGS_COMMON=$(CFLAGS_MAKEDEP) $(CFLAGS_PRELOAD) $(CFLAGS_FS) -Wall -Wsign-compare -Wdeclaration-after-statement +CFLAGS_COMMON=$(CFLAGS_MAKEDEP) $(CFLAGS_PRELOAD) $(CFLAGS_FS) -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement CFLAGS_DEBUG=-ggdb CFLAGS_PROFILE=-g -pg -ggdb -fprofile-arcs CFLAGS_RELEASE= diff --git a/netconn.c b/netconn.c index 0c554344..7a635288 100755 --- a/netconn.c +++ b/netconn.c @@ -153,7 +153,7 @@ qboolean serverlist_consoleoutput; static int nFavorites = 0; static lhnetaddress_t favorites[256]; -void NetConn_UpdateFavorites() +void NetConn_UpdateFavorites(void) { const char *p; nFavorites = 0; diff --git a/netconn.h b/netconn.h index 09c6b72f..f8b42fa9 100755 --- a/netconn.h +++ b/netconn.h @@ -423,7 +423,7 @@ void ServerList_ResetMasks(void); void ServerList_QueryList(qboolean resetcache, qboolean querydp, qboolean queryqw, qboolean consoleoutput); /// called whenever net_slist_favorites changes -void NetConn_UpdateFavorites(); +void NetConn_UpdateFavorites(void); #endif diff --git a/progsvm.h b/progsvm.h index b14c99fa..d31f8eec 100644 --- a/progsvm.h +++ b/progsvm.h @@ -527,7 +527,7 @@ void PRVM_PrintState(void); void PRVM_CrashAll (void); void PRVM_Crash (void); void PRVM_ShortStackTrace(char *buf, size_t bufsize); -const char *PRVM_AllocationOrigin(); +const char *PRVM_AllocationOrigin(void); ddef_t *PRVM_ED_FindField(const char *name); ddef_t *PRVM_ED_FindGlobal(const char *name); diff --git a/prvm_cmds.c b/prvm_cmds.c index 96a84546..7750c13a 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -2974,7 +2974,7 @@ void VM_freepic(void) Draw_FreePic(s); } -dp_font_t *getdrawfont() +dp_font_t *getdrawfont(void) { if(prog->globaloffsets.drawfont >= 0) { diff --git a/prvm_edict.c b/prvm_edict.c index 81ec29ce..456ffb5b 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -224,7 +224,7 @@ void PRVM_ED_ClearEdict (prvm_edict_t *e) PRVM_GCALL(init_edict)(e); } -const char *PRVM_AllocationOrigin() +const char *PRVM_AllocationOrigin(void) { char *buf = NULL; if(prog->leaktest_active) @@ -1630,8 +1630,8 @@ PRVM_ResetProg =============== */ -void PRVM_LeakTest(); -void PRVM_ResetProg() +void PRVM_LeakTest(void); +void PRVM_ResetProg(void) { PRVM_LeakTest(); PRVM_GCALL(reset_cmd)(); @@ -2238,7 +2238,7 @@ void PRVM_InitProg(int prognr) prog->leaktest_active = prvm_leaktest.integer; } -int PRVM_GetProgNr() +int PRVM_GetProgNr(void) { return prog - prog_list; } @@ -2675,7 +2675,7 @@ static qboolean PRVM_IsEdictReferenced(prvm_edict_t *edict, int mark) return false; } -static void PRVM_MarkReferencedEdicts() +static void PRVM_MarkReferencedEdicts(void) { int j; qboolean found_new; @@ -2712,7 +2712,7 @@ static void PRVM_MarkReferencedEdicts() Con_DPrintf("leak check used %d stages to find all references\n", stage); } -void PRVM_LeakTest() +void PRVM_LeakTest(void) { int i, j; qboolean leaked = false; diff --git a/prvm_exec.c b/prvm_exec.c index 55a91d92..af50433f 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -297,7 +297,7 @@ void PRVM_ShortStackTrace(char *buf, size_t bufsize) } -void PRVM_CallProfile () +void PRVM_CallProfile (void) { mfunction_t *f, *best; int i; @@ -424,7 +424,7 @@ void PRVM_Profile_f (void) PRVM_End; } -void PRVM_CrashAll() +void PRVM_CrashAll(void) { int i; prvm_prog_t *oldprog = prog; diff --git a/sbar.c b/sbar.c index 2ef95dfb..d98a4487 100644 --- a/sbar.c +++ b/sbar.c @@ -529,7 +529,7 @@ void Sbar_DrawXNum (int x, int y, int num, int digits, int lettersize, float r, //============================================================================= -int Sbar_IsTeammatch() +int Sbar_IsTeammatch(void) { // currently only nexuiz uses the team score board return ((gamemode == GAME_NEXUIZ) diff --git a/screen.h b/screen.h index 4a333019..2e42b72f 100644 --- a/screen.h +++ b/screen.h @@ -30,7 +30,7 @@ void SCR_BeginLoadingPlaque (void); // invoke refresh of loading plaque (nothing else seen) void SCR_UpdateLoadingScreen(qboolean clear); -void SCR_UpdateLoadingScreenIfShown(); +void SCR_UpdateLoadingScreenIfShown(void); // pushes an item on the loading screen void SCR_PushLoadingScreen (qboolean redraw, const char *msg, float len_in_parent); diff --git a/server.h b/server.h index d05778d6..15bff56c 100644 --- a/server.h +++ b/server.h @@ -537,7 +537,7 @@ void SV_SetupVM(void); void SV_VM_Begin(void); void SV_VM_End(void); -const char *Host_TimingReport(); ///< for output in Host_Status_f +const char *Host_TimingReport(void); ///< for output in Host_Status_f #endif diff --git a/sv_main.c b/sv_main.c index 09411d8a..74bef76b 100644 --- a/sv_main.c +++ b/sv_main.c @@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static void SV_SaveEntFile_f(void); static void SV_StartDownload_f(void); static void SV_Download_f(void); -static void SV_VM_Setup(); +static void SV_VM_Setup(void); extern cvar_t net_connecttimeout; void VM_CustomStats_Clear (void); diff --git a/vid_agl.c b/vid_agl.c index b8201b6d..8586ef07 100644 --- a/vid_agl.c +++ b/vid_agl.c @@ -78,7 +78,7 @@ static WindowRef window; static double originalMouseSpeed = -1.0; -io_connect_t IN_GetIOHandle() +io_connect_t IN_GetIOHandle(void) { io_connect_t iohandle = MACH_PORT_NULL; kern_return_t status; diff --git a/vid_sdl.c b/vid_sdl.c index ea0e8000..8e72a4b1 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -530,7 +530,7 @@ static void VID_SetCaption() #endif SetClassLongPtr( info.window, GCLP_HICON, (LONG_PTR)icon ); } -static void VID_SetIcon() +static void VID_SetIcon(void) { } #else @@ -538,7 +538,7 @@ static void VID_SetIcon() #include "darkplaces.xpm" #include "nexuiz.xpm" static SDL_Surface *icon = NULL; -static void VID_SetIcon() +static void VID_SetIcon(void) { /* * Somewhat restricted XPM reader. Only supports XPMs saved by GIMP 2.4 at @@ -640,13 +640,13 @@ static void VID_SetIcon() } -static void VID_SetCaption() +static void VID_SetCaption(void) { SDL_WM_SetCaption( gamename, NULL ); } #endif -static void VID_OutputVersion() +static void VID_OutputVersion(void) { const SDL_version *version; version = SDL_Linked_Version();