]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix all the () problems, and make gcc warn for them
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Aug 2009 07:36:16 +0000 (07:36 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Aug 2009 07:36:16 +0000 (07:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9134 d7cf8633-e32d-0410-b094-e92efae38249

28 files changed:
cap_avi.c
cap_avi.h
cap_ogg.c
cap_ogg.h
cd_shared.c
cl_screen.c
client.h
console.c
console.h
fs.c
host.c
jpeg.c
keys.c
libcurl.c
libcurl.h
makefile.inc
netconn.c
netconn.h
progsvm.h
prvm_cmds.c
prvm_edict.c
prvm_exec.c
sbar.c
screen.h
server.h
sv_main.c
vid_agl.c
vid_sdl.c

index 623be4ead72a92a3aff6305f3642a39f8746891c..1292f126fe3baf0de3ced74ae0c1f0583287c3d4 100644 (file)
--- 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;
index 29b294f015f4098f341164c313d95e801c056822..2cf15d6a0401fe28cc0e362b23956803be32e97b 100644 (file)
--- a/cap_avi.h
+++ b/cap_avi.h
@@ -1 +1 @@
-void SCR_CaptureVideo_Avi_BeginVideo();
+void SCR_CaptureVideo_Avi_BeginVideo(void);
index 89a09fbdf0a9e115ebec24367b7a7ffa5615823b..9382bb566ac11d3cef3378a39e337bf625745e61 100644 (file)
--- 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";
index a6f4bd087c475f92662169daaaa37e3975e61262..81718f2a3224909bdeb2f50a3ff7f09432a5b149 100644 (file)
--- 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);
index 5422d074563602f074c6566b38853cd5912001db..7706e91c3c05e61eb672d80235621b726e2ed7e8 100644 (file)
@@ -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);
index 546e34de3cf41e78fdfaa920c0dd885a93f7a8d3..ae6e05711ffb28f38c9e6adfc997fd950d7e0328 100644 (file)
@@ -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];
index 1fcaa400e7032efdddb9bbfb26476006588a9d2b..dc37e938a6ca513ee8534fab9901654500963f90 100644 (file)
--- 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);
 
index cdeff90ac6cf4a220266795e9e4316873c95608f..fc29e5f789742f22a297d8e6891c335508990222 100644 (file)
--- 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;
index 10009bf145008edeebb529447147ff094795991e..438e9ca21e2ea40b46eae26621d73a2de23f554c 100644 (file)
--- 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 0782cf52bdb26ca8bba15ce4ebc3da9ace1f4f5c..a03226756894753a6205995e20777a35958220ef 100644 (file)
--- 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 8d1eba3187b554a86c7817fbf426e5683592028b..f01795afeabef0c3280e1ee65176aeacde9e3845 100644 (file)
--- 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 5d09b498e21d65fd20cb570283dacfd9d66885f9..bdcfdc40d5059a86a82b13c50143f11442055a2a 100644 (file)
--- 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 8214d15725093d2b1a98b271e6a4fb8a84e411ce..ce220b42fe7d2e79370e081d9f6f6b6a7872f239 100644 (file)
--- 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;
index 0d3f6c7c061ae5c62baf58b20632a4a10b2371f5..1d261cd68ee8dfa5f7458c842f5ced8d60c653b2 100644 (file)
--- 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] = "";
index f8de728e34a2e7fd059bf0ad6039fd011fdff454..63500a4613c49928ec0d1027607abaec0fbf0c49 100644 (file)
--- 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
 {
index 486bfeebacf6e7930f4ca0b084ed84446a7f2bc6..c04d1447aa4fdbc96d0bddd8b468cc8367301fa8 100644 (file)
@@ -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=
index 0c55434498ad2e1e1678d0ab46e52f6385bbeb6e..7a6352887c57dab73be7b4d69edc4f1b38ed3a10 100755 (executable)
--- 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;
index 09c6b72f0cd7414061b88ebe1dd81199ca62c42d..f8b42fa9fae7d544999325db7281d25d835e78c2 100755 (executable)
--- 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
 
index b14c99fa8f873b07911453dd0946e1b5628afecb..d31f8eeca64ec134e8616307e0e4792bff6235d3 100644 (file)
--- 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);
index 96a84546eaff7f49df41eda03cb93caefd63bc0b..7750c13ac2ec7560c7da4b14697d0432175f7aac 100644 (file)
@@ -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)
        {
index 81ec29ce8b7e8bed4a6109ba13752ab636bec720..456ffb5bedc7dcacd1e30cabadaaa3bc1d714c26 100644 (file)
@@ -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;
index 55a91d92d9438d148fe6312b951aa5181bfd7a86..af50433f66c17ab2baf658110a3bf37cd9606b3b 100644 (file)
@@ -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 2ef95dfbf944f917ba9bb69f9cf1f9074f8e5d51..d98a44879457cf21ff0d028091151bc7bfd1600b 100644 (file)
--- 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)
index 4a3330190d9394110d0072c835749b242c681eb0..2e42b72fda917c8c8be5c50598c2b7164de35012 100644 (file)
--- 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);
index d05778d6a7163168cdf083768512cd19c96b0d9a..15bff56c54564405cd391ced0f2b7c780228ac5e 100644 (file)
--- 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
 
index 09411d8a6a89711c7d9cf40fc3b02bd8e7703f86..74bef76b39122ed27614da8051b95232812c1200 100644 (file)
--- 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);
index b8201b6d1f8b88f35ed97977dd87005ce9faae02..8586ef07e7c8fdf7e71520133e41316e1ff5966c 100644 (file)
--- 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;
index ea0e80005f2dd4eb3528b872da1bd5882c6e69a2..8e72a4b18ecd390119b07ce1bcd747616e93630c 100644 (file)
--- 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();