diff options
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/cm_patch.c | 2 | ||||
-rw-r--r-- | code/qcommon/common.c | 2 | ||||
-rw-r--r-- | code/qcommon/files.c | 2 | ||||
-rw-r--r-- | code/qcommon/msg.c | 4 | ||||
-rw-r--r-- | code/qcommon/qcommon.h | 12 | ||||
-rw-r--r-- | code/qcommon/qfiles.h | 2 | ||||
-rw-r--r-- | code/qcommon/unzip.c | 2 |
7 files changed, 14 insertions, 12 deletions
diff --git a/code/qcommon/cm_patch.c b/code/qcommon/cm_patch.c index 75ad7f8..2b80169 100644 --- a/code/qcommon/cm_patch.c +++ b/code/qcommon/cm_patch.c @@ -1379,7 +1379,7 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s * float offset, enterFrac, leaveFrac, t; patchPlane_t *planes; facet_t *facet; - float plane[4], bestplane[4]; + float plane[4] = {0, 0, 0, 0}, bestplane[4] = {0, 0, 0, 0}; vec3_t startp, endp; #ifndef BSPC static cvar_t *cv; diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 7eadabb..49f3721 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -100,7 +100,7 @@ qboolean com_fullyInitialized; char com_errorMessage[MAXPRINTMSG]; void Com_WriteConfig_f( void ); -void CIN_CloseAllVideos(); +void CIN_CloseAllVideos( void ); //============================================================================ diff --git a/code/qcommon/files.c b/code/qcommon/files.c index febbf4c..942bf24 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -2699,7 +2699,7 @@ NOTE TTimo: the reordering that happens here is not reflected in the cvars (\cva this can lead to misleading situations, see https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=540 ================ */ -static void FS_ReorderPurePaks() +static void FS_ReorderPurePaks( void ) { searchpath_t *s; int i; diff --git a/code/qcommon/msg.c b/code/qcommon/msg.c index 0d8ff17..8c8afe8 100644 --- a/code/qcommon/msg.c +++ b/code/qcommon/msg.c @@ -39,7 +39,7 @@ Handles byte ordering and avoids alignment errors int oldsize = 0; -void MSG_initHuffman(); +void MSG_initHuffman( void ); void MSG_Init( msg_t *buf, byte *data, int length ) { if (!msgInit) { @@ -1706,7 +1706,7 @@ int msg_hData[256] = { 13504, // 255 }; -void MSG_initHuffman() { +void MSG_initHuffman( void ) { int i,j; msgInit = qtrue; diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 3cad841..2295f56 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -529,9 +529,9 @@ issues. #define BASEGAME "baseq3" -qboolean FS_Initialized(); +qboolean FS_Initialized( void ); -void FS_InitFilesystem (void); +void FS_InitFilesystem ( void ); void FS_Shutdown( qboolean closemfp ); qboolean FS_ConditionalRestart( int checksumFeed ); @@ -547,7 +547,7 @@ void FS_FreeFileList( char **list ); qboolean FS_FileExists( const char *file ); -int FS_LoadStack(); +int FS_LoadStack( void ); int FS_GetFileList( const char *path, const char *extension, char *listbuf, int bufsize ); int FS_GetModList( char *listbuf, int bufsize ); @@ -904,7 +904,7 @@ qboolean SV_GameCommand( void ); // UI interface // qboolean UI_GameCommand( void ); -qboolean UI_usesUniqueCDKey(); +qboolean UI_usesUniqueCDKey(void); /* ============================================================== @@ -1018,8 +1018,8 @@ void Sys_FreeFileList( char **list ); void Sys_BeginProfiling( void ); void Sys_EndProfiling( void ); -qboolean Sys_LowPhysicalMemory(); -unsigned int Sys_ProcessorCount(); +qboolean Sys_LowPhysicalMemory( void ); +unsigned int Sys_ProcessorCount( void ); int Sys_MonkeyShouldBeSpanked( void ); diff --git a/code/qcommon/qfiles.h b/code/qcommon/qfiles.h index cbffbed..c0d5968 100644 --- a/code/qcommon/qfiles.h +++ b/code/qcommon/qfiles.h @@ -454,6 +454,8 @@ typedef struct { byte color[4]; } drawVert_t; +#define drawVert_t_cleared(x) drawVert_t (x) = {{0, 0, 0}, {0, 0}, {0, 0}, {0, 0, 0}, {0, 0, 0, 0}} + typedef enum { MST_BAD, MST_PLANAR, diff --git a/code/qcommon/unzip.c b/code/qcommon/unzip.c index ed521ea..6522ec7 100644 --- a/code/qcommon/unzip.c +++ b/code/qcommon/unzip.c @@ -3034,7 +3034,7 @@ static int huft_build(uInt *b, uInt n, uInt s, const uInt *d, const uInt *e, inf uInt mask; /* (1 << w) - 1, to avoid cc -O bug on HP */ register uInt *p; /* pointer into c[], b[], or v[] */ inflate_huft *q; /* points to current table */ - struct inflate_huft_s r; /* table entry for structure assignment */ + struct inflate_huft_s r = {{{0, 0}}}; /* table entry for structure assignment */ inflate_huft *u[BMAX]; /* table stack */ register int w; /* bits before this table == (l * h) */ uInt x[BMAX+1]; /* bit offsets, then code stack */ |