mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fix another spurious warning.
gcc 13.1 thinks that `newsocket` can be used uninitialized, because it doesn't know that a call to `Com_Error()` is fatal.
This commit is contained in:
parent
cb317f2cd3
commit
f6361740f5
1 changed files with 2 additions and 1 deletions
|
@ -812,7 +812,8 @@ int
|
|||
NET_Socket(char *net_interface, int port, netsrc_t type, int family)
|
||||
{
|
||||
char Buf[BUFSIZ], *Host, *Service;
|
||||
int newsocket, Error;
|
||||
int newsocket = 0;
|
||||
int Error = 0;
|
||||
struct sockaddr_storage ss;
|
||||
struct addrinfo hints, *res, *ai;
|
||||
qboolean _true = true;
|
||||
|
|
Loading…
Reference in a new issue