Work around strange internal compiler error with gcc 8.2.0...

git-svn-id: https://svn.eduke32.com/eduke32@6965 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-08-09 16:06:55 +00:00
parent f1cedd03f4
commit f8fc87db78
2 changed files with 8 additions and 6 deletions

View file

@ -9,10 +9,12 @@ extern int myconnectindex, numplayers;
extern int connecthead, connectpoint2[MAXMULTIPLAYERS];
extern unsigned char syncstate;
int initmultiplayersparms(int argc, char const * const argv[]);
#if 0
int initmultiplayersparms(int argc, char const * const * argv);
int initmultiplayerscycle(void);
void initmultiplayers(int argc, char const * const * argv, unsigned char damultioption, unsigned char dacomrateoption, unsigned char dapriority);
#endif
void initmultiplayers(int argc, char const * const argv[], unsigned char damultioption, unsigned char dacomrateoption, unsigned char dapriority);
void setpackettimeout(int datimeoutcount, int daresendagaincount);
void uninitmultiplayers(void);
void sendlogon(void);

View file

@ -18,8 +18,8 @@ int isvalidipaddress (const char *st)
UNREFERENCED_PARAMETER(st);
return 0;
}
int initmultiplayersparms(int argc, char const * const argv[])
#if 0 // XXX XXX XXX: causes internal compiler error with gcc 8.2.0, wtf?
int initmultiplayersparms(int argc, char const * const * argv)
{
UNREFERENCED_PARAMETER(argc);
UNREFERENCED_PARAMETER(argv);
@ -31,7 +31,7 @@ int initmultiplayerscycle(void)
return 0;
}
void initmultiplayers(int argc, char const * const argv[], unsigned char damultioption, unsigned char dacomrateoption, unsigned char dapriority)
void initmultiplayers(int argc, char const * const * argv, unsigned char damultioption, unsigned char dacomrateoption, unsigned char dapriority)
{
UNREFERENCED_PARAMETER(argc);
UNREFERENCED_PARAMETER(argv);
@ -42,7 +42,7 @@ void initmultiplayers(int argc, char const * const argv[], unsigned char damulti
numplayers = 1; myconnectindex = 0;
connecthead = 0; connectpoint2[0] = -1;
}
#endif
void setpackettimeout(int datimeoutcount, int daresendagaincount)
{
UNREFERENCED_PARAMETER(datimeoutcount);