mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Warnings
git-svn-id: https://svn.eduke32.com/eduke32@655 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
408ca47fbd
commit
546e361166
11 changed files with 76 additions and 31 deletions
|
@ -64,7 +64,6 @@ static int osdfunc_setrendermode(const osdfuncparm_t *parm)
|
|||
static int osdcmd_hicsetpalettetint(const osdfuncparm_t *parm)
|
||||
{
|
||||
int pal, cols[3], eff;
|
||||
char *p;
|
||||
|
||||
if (parm->numparms != 5) return OSDCMD_SHOWHELP;
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ static int repeatcountx, repeatcounty;
|
|||
static int fillist[640];
|
||||
|
||||
int mousx, mousy;
|
||||
|
||||
/*
|
||||
static char scantoasc[128] =
|
||||
{
|
||||
0,0,'1','2','3','4','5','6','7','8','9','0','-','=',0,0,
|
||||
|
@ -158,8 +158,7 @@ static char scantoascwithshift[128] =
|
|||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
};
|
||||
|
||||
|
||||
*/
|
||||
|
||||
char changechar(char dachar, int dadir, char smooshyalign, char boundcheck);
|
||||
int adjustmark(int *xplc, int *yplc, short danumwalls);
|
||||
|
@ -203,6 +202,8 @@ static int osdcmd_restartvid(const osdfuncparm_t *parm)
|
|||
{
|
||||
extern int qsetmode;
|
||||
|
||||
UNREFERENCED_PARAMETER(parm);
|
||||
|
||||
if (qsetmode != 200) return OSDCMD_OK;
|
||||
|
||||
resetvideomode();
|
||||
|
@ -270,7 +271,7 @@ extern char *defsfilename; // set in bstub.c
|
|||
|
||||
int app_main(int argc, const char **argv)
|
||||
{
|
||||
char ch, quitflag, cmdsetup = 0;
|
||||
char quitflag, cmdsetup = 0;
|
||||
int i, j, k;
|
||||
|
||||
pathsearchmode = 1; // unrestrict findfrompath so that full access to the filesystem can be had
|
||||
|
@ -566,10 +567,10 @@ void loadmhk()
|
|||
|
||||
void editinput(void)
|
||||
{
|
||||
char smooshyalign, repeatpanalign, *ptr, buffer[80];
|
||||
short sectnum, nextsectnum, startwall, endwall, dasector, daang;
|
||||
char smooshyalign, repeatpanalign, buffer[80];
|
||||
short /*sectnum, nextsectnum,*/ startwall, endwall, dasector, daang;
|
||||
int mousz, bstatus;
|
||||
int i, j, k, cnt, tempint=0, doubvel, changedir, wallfind[2], daz[2];
|
||||
int i, j, k, /*cnt,*/ tempint=0, doubvel, changedir/*, wallfind[2], daz[2]*/;
|
||||
int dashade[2], goalz, xvect, yvect, hiz, loz;
|
||||
short hitsect, hitwall, hitsprite;
|
||||
int hitx, hity, hitz, dax, day, hihit, lohit;
|
||||
|
@ -6515,7 +6516,7 @@ int numloopsofsector(short sectnum)
|
|||
int getnumber16(char namestart[80], int num, int maxnumber, char sign)
|
||||
{
|
||||
char buffer[80], ch;
|
||||
int j, k, n, danum, oldnum;
|
||||
int n, danum, oldnum;
|
||||
|
||||
danum = (int)num;
|
||||
oldnum = danum;
|
||||
|
@ -6569,7 +6570,7 @@ int getnumber16(char namestart[80], int num, int maxnumber, char sign)
|
|||
int getnumber256(char namestart[80], int num, int maxnumber, char sign)
|
||||
{
|
||||
char buffer[80], ch;
|
||||
int j, k, n, danum, oldnum;
|
||||
int n, danum, oldnum;
|
||||
|
||||
danum = num;
|
||||
oldnum = danum;
|
||||
|
@ -6657,8 +6658,8 @@ int getfilenames(char *path, char *kind)
|
|||
int menuselect(void)
|
||||
{
|
||||
int listsize;
|
||||
int i, j, topplc;
|
||||
char ch, buffer[78], *sb;
|
||||
int i;
|
||||
char ch, buffer[78];
|
||||
static char oldpath[BMAX_PATH];
|
||||
CACHE1D_FIND_REC *dir;
|
||||
|
||||
|
@ -7473,7 +7474,6 @@ void showspritedata(short spritenum)
|
|||
void keytimerstuff(void)
|
||||
{
|
||||
static int ltotalclock=0;
|
||||
int i;
|
||||
if (totalclock == ltotalclock) return;
|
||||
ltotalclock=totalclock;
|
||||
|
||||
|
|
|
@ -5537,6 +5537,7 @@ static int raytrace(int x3, int y3, int *x4, int *y4)
|
|||
static void sighandler(int sig, const siginfo_t *info, void *ctx)
|
||||
{
|
||||
const char *s;
|
||||
UNREFERENCED_PARAMETER(ctx);
|
||||
switch (sig)
|
||||
{
|
||||
case SIGFPE:
|
||||
|
|
|
@ -189,6 +189,7 @@ static void * getproc_(const char *s, int *err, int fatal, int extension)
|
|||
{
|
||||
void *t;
|
||||
#if defined RENDERTYPESDL
|
||||
UNREFERENCED_PARAMETER(extension);
|
||||
t = (void*)SDL_GL_GetProcAddress(s);
|
||||
#elif defined _WIN32
|
||||
if (extension) t = (void*)bwglGetProcAddress(s);
|
||||
|
|
|
@ -85,6 +85,7 @@ void gtkbuild_init(int *argc, char ***argv)
|
|||
|
||||
void gtkbuild_exit(int r)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(r);
|
||||
if (gtkenabled)
|
||||
{
|
||||
if (appicon) g_object_unref((gpointer)appicon);
|
||||
|
|
|
@ -59,8 +59,10 @@ static int GetTickCount(void)
|
|||
int packetrate = PAKRATE;
|
||||
#define SIMMIS 0 //Release:0 Test:100 Packets per 256 missed.
|
||||
#define SIMLAG 0 //Release:0 Test: 10 Packets to delay receipt
|
||||
#if (SIMLAG != 0)
|
||||
static int simlagcnt[MAXPLAYERS];
|
||||
static char simlagfif[MAXPLAYERS][SIMLAG+1][MAXPAKSIZ+2];
|
||||
#endif
|
||||
#if ((SIMMIS != 0) || (SIMLAG != 0))
|
||||
#pragma message("\n\nWARNING! INTENTIONAL PACKET LOSS SIMULATION IS ENABLED!\nREMEMBER TO CHANGE SIMMIS&SIMLAG to 0 before RELEASE!\n\n")
|
||||
#endif
|
||||
|
@ -169,7 +171,9 @@ int netinit(int portnum)
|
|||
LPHOSTENT lpHostEnt;
|
||||
char hostnam[256];
|
||||
struct sockaddr_in ip;
|
||||
#ifdef __BEOS__
|
||||
int i;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
if (wsainitialized == 0)
|
||||
|
@ -323,10 +327,16 @@ int isvalidipaddress(char *st)
|
|||
|
||||
//---------------------------------- Obsolete variables&functions ----------------------------------
|
||||
char syncstate = 0;
|
||||
void setpackettimeout(int datimeoutcount, int daresendagaincount) {}
|
||||
void genericmultifunction(int other, char *bufptr, int messleng, int command) {}
|
||||
void setpackettimeout(int datimeoutcount, int daresendagaincount) { UNREFERENCED_PARAMETER(datimeoutcount); UNREFERENCED_PARAMETER(daresendagaincount); }
|
||||
void genericmultifunction(int other, char *bufptr, int messleng, int command)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(other);
|
||||
UNREFERENCED_PARAMETER(bufptr);
|
||||
UNREFERENCED_PARAMETER(messleng);
|
||||
UNREFERENCED_PARAMETER(command);
|
||||
}
|
||||
int getoutputcirclesize() { return(0); }
|
||||
void setsocket(int newsocket) { }
|
||||
void setsocket(int newsocket) { UNREFERENCED_PARAMETER(newsocket); }
|
||||
void flushpackets() {}
|
||||
void sendlogon() {}
|
||||
void sendlogoff() {}
|
||||
|
@ -506,7 +516,7 @@ int initmultiplayersparms(int argc, char **argv)
|
|||
int initmultiplayerscycle(void)
|
||||
{
|
||||
int i, k;
|
||||
extern int totalclock;
|
||||
// extern int totalclock;
|
||||
|
||||
idle();
|
||||
|
||||
|
@ -550,11 +560,14 @@ int initmultiplayerscycle(void)
|
|||
|
||||
void initmultiplayers(int argc, char **argv, char damultioption, char dacomrateoption, char dapriority)
|
||||
{
|
||||
int i, j, k, otims;
|
||||
UNREFERENCED_PARAMETER(damultioption);
|
||||
UNREFERENCED_PARAMETER(dacomrateoption);
|
||||
UNREFERENCED_PARAMETER(dapriority);
|
||||
|
||||
if (initmultiplayersparms(argc,argv))
|
||||
{
|
||||
#if 0
|
||||
int i, j, k, otims;
|
||||
//Console code seems to crash Win98 upon quitting game
|
||||
//it's not necessary and it's not portable anyway
|
||||
char tbuf[1024];
|
||||
|
@ -644,7 +657,7 @@ void dosendpackets(int other) //Host to send intially, client to send to others
|
|||
|
||||
void sendpacket(int other, char *bufptr, int messleng)
|
||||
{
|
||||
int i, j;
|
||||
// int i, j;
|
||||
|
||||
if (numplayers < 2) return;
|
||||
|
||||
|
|
|
@ -22,12 +22,12 @@ static symbol_t *addnewsymbol(const char *name);
|
|||
static symbol_t *findsymbol(const char *name, symbol_t *startingat);
|
||||
static symbol_t *findexactsymbol(const char *name);
|
||||
|
||||
static int _validate_osdlines(void *);
|
||||
// static int _validate_osdlines(void *);
|
||||
|
||||
static int _internal_osdfunc_listsymbols(const osdfuncparm_t *);
|
||||
static int _internal_osdfunc_help(const osdfuncparm_t *);
|
||||
static int _internal_osdfunc_dumpbuildinfo(const osdfuncparm_t *);
|
||||
static int _internal_osdfunc_setrendermode(const osdfuncparm_t *);
|
||||
// static int _internal_osdfunc_dumpbuildinfo(const osdfuncparm_t *);
|
||||
// static int _internal_osdfunc_setrendermode(const osdfuncparm_t *);
|
||||
|
||||
static int white=-1; // colour of white (used by default display routines)
|
||||
static void _internal_drawosdchar(int, int, char, int, int);
|
||||
|
@ -99,8 +99,8 @@ static int osdeditshade=0;
|
|||
static int osdeditpal=0;
|
||||
static int osdtextshade=0;
|
||||
static int osdtextpal=0;
|
||||
static int osdcursorshade=0;
|
||||
static int osdcursorpal=0;
|
||||
/* static int osdcursorshade=0;
|
||||
static int osdcursorpal=0; */
|
||||
|
||||
// application callbacks
|
||||
static void (*drawosdchar)(int, int, char, int, int) = _internal_drawosdchar;
|
||||
|
@ -117,6 +117,9 @@ static void _internal_drawosdchar(int x, int y, char ch, int shade, int pal)
|
|||
int i,j,k;
|
||||
char st[2] = { 0,0 };
|
||||
|
||||
UNREFERENCED_PARAMETER(shade);
|
||||
UNREFERENCED_PARAMETER(pal);
|
||||
|
||||
st[0] = ch;
|
||||
|
||||
if (white<0)
|
||||
|
@ -138,6 +141,9 @@ static void _internal_drawosdstr(int x, int y, char *ch, int len, int shade, int
|
|||
int i,j,k;
|
||||
char st[1024];
|
||||
|
||||
UNREFERENCED_PARAMETER(shade);
|
||||
UNREFERENCED_PARAMETER(pal);
|
||||
|
||||
if (len>1023) len=1023;
|
||||
memcpy(st,ch,len);
|
||||
st[len]=0;
|
||||
|
@ -161,6 +167,8 @@ static void _internal_drawosdcursor(int x, int y, int type, int lastkeypress)
|
|||
int i,j,k;
|
||||
char st[2] = { '_',0 };
|
||||
|
||||
UNREFERENCED_PARAMETER(lastkeypress);
|
||||
|
||||
if (type) st[0] = '#';
|
||||
|
||||
if (white<0)
|
||||
|
@ -189,6 +197,8 @@ static int _internal_getrowheight(int w)
|
|||
|
||||
static void _internal_clearbackground(int cols, int rows)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(cols);
|
||||
UNREFERENCED_PARAMETER(rows);
|
||||
}
|
||||
|
||||
static int _internal_gettime(void)
|
||||
|
@ -198,6 +208,7 @@ static int _internal_gettime(void)
|
|||
|
||||
static void _internal_onshowosd(int a)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(a);
|
||||
}
|
||||
|
||||
////////////////////////////
|
||||
|
@ -232,6 +243,8 @@ static int _internal_osdfunc_listsymbols(const osdfuncparm_t *parm)
|
|||
{
|
||||
symbol_t *i;
|
||||
|
||||
UNREFERENCED_PARAMETER(parm);
|
||||
|
||||
OSD_Printf("Symbol listing:\n");
|
||||
for (i=symbols; i!=NULL; i=i->next)
|
||||
OSD_Printf(" %s\n", i->name);
|
||||
|
@ -259,6 +272,7 @@ static int _internal_osdfunc_help(const osdfuncparm_t *parm)
|
|||
|
||||
static int _internal_osdfunc_clear(const osdfuncparm_t *parm)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(parm);
|
||||
Bmemset(osdtext,0,sizeof(osdtext));
|
||||
osdlines = 1;
|
||||
return OSDCMD_OK;
|
||||
|
|
|
@ -386,7 +386,6 @@ int scriptfile_getsymbolvalue(char *name, int *val)
|
|||
|
||||
int scriptfile_addsymbolvalue(char *name, int val)
|
||||
{
|
||||
int x;
|
||||
char *sp;
|
||||
// if (scriptfile_getsymbolvalue(name, &x)) return -1; // already exists
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ void debugprintf(const char *f, ...)
|
|||
//
|
||||
|
||||
static char mouseacquired=0,moustat=0;
|
||||
static int joyblast=0;
|
||||
// static int joyblast=0;
|
||||
static SDL_Joystick *joydev = NULL;
|
||||
|
||||
//
|
||||
|
@ -549,7 +549,11 @@ void readmousebstatus(int *b)
|
|||
// setjoydeadzone() -- sets the dead and saturation zones for the joystick
|
||||
//
|
||||
void setjoydeadzone(int axis, unsigned short dead, unsigned short satur)
|
||||
{}
|
||||
{
|
||||
UNREFERENCED_PARAMETER(axis);
|
||||
UNREFERENCED_PARAMETER(dead);
|
||||
UNREFERENCED_PARAMETER(satur);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
|
@ -557,6 +561,7 @@ void setjoydeadzone(int axis, unsigned short dead, unsigned short satur)
|
|||
//
|
||||
void getjoydeadzone(int axis, unsigned short *dead, unsigned short *satur)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(axis);
|
||||
*dead = *satur = 0;
|
||||
}
|
||||
|
||||
|
@ -864,7 +869,7 @@ int checkvideomode(int *x, int *y, int c, int fs, int forced)
|
|||
//
|
||||
int setvideomode(int x, int y, int c, int fs)
|
||||
{
|
||||
int modenum, regrab = 0;
|
||||
int regrab = 0;
|
||||
static int warnonce = 0;
|
||||
|
||||
if ((fs == fullscreen) && (x == xres) && (y == yres) && (c == bpp) &&
|
||||
|
@ -1007,7 +1012,6 @@ int setvideomode(int x, int y, int c, int fs)
|
|||
if (c > 8)
|
||||
{
|
||||
char *p,*p2,*p3;
|
||||
int i;
|
||||
|
||||
polymost_glreset();
|
||||
|
||||
|
@ -1233,7 +1237,8 @@ void enddrawing(void)
|
|||
//
|
||||
void showframe(int w)
|
||||
{
|
||||
int i,j;
|
||||
// int i,j;
|
||||
UNREFERENCED_PARAMETER(w);
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
if (bpp > 8)
|
||||
|
|
|
@ -143,6 +143,7 @@ static void on_vmode2dcombo_changed(GtkComboBox *combobox, gpointer user_data)
|
|||
GtkTreeModel *data;
|
||||
GtkTreeIter iter;
|
||||
int val;
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
if (!gtk_combo_box_get_active_iter(combobox, &iter)) return;
|
||||
if (!(data = gtk_combo_box_get_model(combobox))) return;
|
||||
gtk_tree_model_get(data, &iter, 1, &val, -1);
|
||||
|
@ -155,6 +156,7 @@ static void on_vmode3dcombo_changed(GtkComboBox *combobox, gpointer user_data)
|
|||
GtkTreeModel *data;
|
||||
GtkTreeIter iter;
|
||||
int val;
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
if (!gtk_combo_box_get_active_iter(combobox, &iter)) return;
|
||||
if (!(data = gtk_combo_box_get_model(combobox))) return;
|
||||
gtk_tree_model_get(data, &iter, 1, &val, -1);
|
||||
|
@ -164,29 +166,38 @@ static void on_vmode3dcombo_changed(GtkComboBox *combobox, gpointer user_data)
|
|||
|
||||
static void on_fullscreencheck_toggled(GtkToggleButton *togglebutton, gpointer user_data)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
settings.fullscreen = (gtk_toggle_button_get_active(togglebutton) == TRUE);
|
||||
PopulateForm();
|
||||
}
|
||||
|
||||
static void on_alwaysshowcheck_toggled(GtkToggleButton *togglebutton, gpointer user_data)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
settings.forcesetup = (gtk_toggle_button_get_active(togglebutton) == TRUE);
|
||||
}
|
||||
|
||||
static void on_cancelbutton_clicked(GtkButton *button, gpointer user_data)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(button);
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
if (mode == TAB_CONFIG) { retval = 0; gtk_main_quit(); }
|
||||
else quitevent++;
|
||||
}
|
||||
|
||||
static void on_startbutton_clicked(GtkButton *button, gpointer user_data)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(button);
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
retval = 1;
|
||||
gtk_main_quit();
|
||||
}
|
||||
|
||||
static gboolean on_startwin_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(widget);
|
||||
UNREFERENCED_PARAMETER(event);
|
||||
UNREFERENCED_PARAMETER(user_data);
|
||||
if (mode == TAB_CONFIG) { retval = 0; gtk_main_quit(); }
|
||||
else quitevent++;
|
||||
return TRUE; // FALSE would let the event go through. we want the game to decide when to close
|
||||
|
@ -581,6 +592,7 @@ int startwin_settitle(const char *title)
|
|||
|
||||
int startwin_idle(void *s)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(s);
|
||||
if (!gtkenabled) return 0;
|
||||
//if (!startwin) return 1;
|
||||
gtk_main_iteration_do(FALSE);
|
||||
|
|
|
@ -9221,7 +9221,7 @@ static void checkcommandline(int argc, const char **argv)
|
|||
if (*c == '4')
|
||||
{
|
||||
movesperpacket = 4;
|
||||
setpackettimeout(0x3fffffff,0x3fffffff);
|
||||
setpackettimeout(0x3fffffff,0x3fffffff); // this doesn't do anything anymore
|
||||
}
|
||||
break;
|
||||
case 'g':
|
||||
|
|
Loading…
Reference in a new issue