Fixed a few Cygwin warnings: Removed/commented unused variables, added newline at end of crc.c
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2584 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d3565abc3a
commit
865a5a003d
11 changed files with 8 additions and 17 deletions
|
@ -1771,7 +1771,9 @@ qboolean SCR_ScreenShot (char *filename)
|
||||||
int truewidth, trueheight;
|
int truewidth, trueheight;
|
||||||
qbyte *buffer;
|
qbyte *buffer;
|
||||||
int i, c, temp;
|
int i, c, temp;
|
||||||
|
#if defined(AVAIL_PNGLIB) || defined(AVAIL_JPEGLIB)
|
||||||
extern cvar_t scr_sshot_compression;
|
extern cvar_t scr_sshot_compression;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MAX_PREPAD 128
|
#define MAX_PREPAD 128
|
||||||
char *ext;
|
char *ext;
|
||||||
|
|
|
@ -576,7 +576,6 @@ void Master_AddMasterHTTP (char *address, int mastertype, char *description)
|
||||||
//build a linked list of masters. Doesn't duplicate addresses.
|
//build a linked list of masters. Doesn't duplicate addresses.
|
||||||
qboolean Master_LoadMasterList (char *filename, int defaulttype, int depth)
|
qboolean Master_LoadMasterList (char *filename, int defaulttype, int depth)
|
||||||
{
|
{
|
||||||
extern char *com_basedir;
|
|
||||||
vfsfile_t *f;
|
vfsfile_t *f;
|
||||||
char line[1024];
|
char line[1024];
|
||||||
char file[1024];
|
char file[1024];
|
||||||
|
|
|
@ -514,10 +514,8 @@ void PF_CL_drawresetcliparea (progfuncs_t *prinst, struct globalvars_s *pr_globa
|
||||||
//void (float width, vector rgb, float alpha, float flags, vector pos1, ...) drawline;
|
//void (float width, vector rgb, float alpha, float flags, vector pos1, ...) drawline;
|
||||||
void PF_CL_drawline (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
void PF_CL_drawline (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
{
|
{
|
||||||
float width = G_FLOAT(OFS_PARM0);
|
|
||||||
float *rgb = G_VECTOR(OFS_PARM1);
|
float *rgb = G_VECTOR(OFS_PARM1);
|
||||||
float alpha = G_FLOAT(OFS_PARM2);
|
float alpha = G_FLOAT(OFS_PARM2);
|
||||||
float flags = G_FLOAT(OFS_PARM3);
|
|
||||||
float *pos = G_VECTOR(OFS_PARM4);
|
float *pos = G_VECTOR(OFS_PARM4);
|
||||||
int numpoints = *prinst->callargc-4;
|
int numpoints = *prinst->callargc-4;
|
||||||
|
|
||||||
|
|
|
@ -1461,9 +1461,6 @@ void D3DSucks(void)
|
||||||
|
|
||||||
qboolean R_ApplyRenderer (rendererstate_t *newr)
|
qboolean R_ApplyRenderer (rendererstate_t *newr)
|
||||||
{
|
{
|
||||||
extern model_t *loadmodel;
|
|
||||||
extern int host_hunklevel;
|
|
||||||
|
|
||||||
if (newr->bpp == -1)
|
if (newr->bpp == -1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -1715,8 +1715,6 @@ qboolean Sbar_ShouldDraw (void)
|
||||||
#endif
|
#endif
|
||||||
qboolean headsup;
|
qboolean headsup;
|
||||||
|
|
||||||
int deadcount=0;
|
|
||||||
|
|
||||||
if (scr_con_current == vid.height)
|
if (scr_con_current == vid.height)
|
||||||
return false; // console is full screen
|
return false; // console is full screen
|
||||||
|
|
||||||
|
@ -1777,9 +1775,6 @@ Sbar_Draw
|
||||||
*/
|
*/
|
||||||
void Sbar_Draw (void)
|
void Sbar_Draw (void)
|
||||||
{
|
{
|
||||||
#ifdef TEXTEDITOR
|
|
||||||
extern qboolean editoractive;
|
|
||||||
#endif
|
|
||||||
qboolean headsup;
|
qboolean headsup;
|
||||||
char st[512];
|
char st[512];
|
||||||
int pnum;
|
int pnum;
|
||||||
|
|
|
@ -63,7 +63,6 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
|
||||||
int fmt;
|
int fmt;
|
||||||
int tmp;
|
int tmp;
|
||||||
int i;
|
int i;
|
||||||
char *s;
|
|
||||||
struct audio_buf_info info;
|
struct audio_buf_info info;
|
||||||
int caps;
|
int caps;
|
||||||
char *snddev = NULL;
|
char *snddev = NULL;
|
||||||
|
|
|
@ -323,12 +323,12 @@ void Validation_CheckIfResponse(char *text)
|
||||||
|
|
||||||
//now do the validation
|
//now do the validation
|
||||||
{
|
{
|
||||||
f_query_t *query = NULL;
|
//f_query_t *query = NULL;
|
||||||
int itemp;
|
int itemp;
|
||||||
char buffer[10];
|
char buffer[10];
|
||||||
unsigned short query_crc = 0;
|
unsigned short query_crc = 0;
|
||||||
unsigned long user_crc = 0;
|
unsigned long user_crc = 0;
|
||||||
unsigned long auth_crc = 0;
|
//unsigned long auth_crc = 0;
|
||||||
//char auth_answer; //unreferenced
|
//char auth_answer; //unreferenced
|
||||||
|
|
||||||
//int slot; //unreferenced
|
//int slot; //unreferenced
|
||||||
|
|
|
@ -1244,7 +1244,9 @@ entity_t *CL_EntityNum(int num)
|
||||||
float CalcFov (float fov_x, float width, float height);
|
float CalcFov (float fov_x, float width, float height);
|
||||||
void SCR_VRectForPlayer(vrect_t *vrect, int pnum)
|
void SCR_VRectForPlayer(vrect_t *vrect, int pnum)
|
||||||
{
|
{
|
||||||
|
#ifdef GLQUAKE
|
||||||
extern int glwidth, glheight;
|
extern int glwidth, glheight;
|
||||||
|
#endif
|
||||||
#if MAX_SPLITS > 4
|
#if MAX_SPLITS > 4
|
||||||
#pragma warning "Please change this function to cope with the new MAX_SPLITS value"
|
#pragma warning "Please change this function to cope with the new MAX_SPLITS value"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -95,4 +95,4 @@ void QCRC_AddBlock (unsigned short *crcvalue, qbyte *start, int count)
|
||||||
{
|
{
|
||||||
while (count--)
|
while (count--)
|
||||||
QCRC_ProcessByte(crcvalue, *start++);
|
QCRC_ProcessByte(crcvalue, *start++);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2605,7 +2605,6 @@ void QCC_main (int argc, char **argv) //as part of the quake engine
|
||||||
int p;
|
int p;
|
||||||
|
|
||||||
#ifndef QCCONLY
|
#ifndef QCCONLY
|
||||||
extern char qcc_gamedir[];
|
|
||||||
char destfile2[1024], *s2;
|
char destfile2[1024], *s2;
|
||||||
#endif
|
#endif
|
||||||
char *s;
|
char *s;
|
||||||
|
|
|
@ -217,7 +217,7 @@ void SV_MVD_RunPendingConnections(void)
|
||||||
}
|
}
|
||||||
if (end)
|
if (end)
|
||||||
{ //we found the end of the header
|
{ //we found the end of the header
|
||||||
qboolean server = false, reverse = false;
|
qboolean server = false;
|
||||||
char *start, *lineend;
|
char *start, *lineend;
|
||||||
int versiontouse = 0;
|
int versiontouse = 0;
|
||||||
int raw = 0;
|
int raw = 0;
|
||||||
|
|
Loading…
Reference in a new issue