You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../src/mathlib.c: In function ‘PerpendicularVector’:
../src/mathlib.c:72:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
VectorNormalizeFast(dst);
^
../src/mathlib.c:72:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
../src/net.c: In function ‘NetadrToSockadr’:
../src/net.c:242:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
((struct sockaddr_in*)s)->sin_addr.s_addr = *(int *)&a->ip;
^
../src/net.c: In function ‘SockadrToNetadr’:
../src/net.c:249:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int *)&a->ip = ((struct sockaddr_in *)s)->sin_addr.s_addr;
^
../src/net.c: In function ‘NET_GetTCPPacket_SV’:
../src/net.c:746:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
message->cursize = BigShort(*(short*)st->inbuffer);
^
../src/net.c: In function ‘NET_GetLocalAddress’:
../src/net.c:1253:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if (!*(int*)out->ip) //socket was set to auto
^
../src/net.c:1254:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int *)out->ip = *(int *)adr.ip; //change it to what the machine says it is, rather than the socket.
^
../src/net.c:1254:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
../src/net.c:1235:8: warning: variable ‘notvalid’ set but not used [-Wunused-but-set-variable]
qbool notvalid = false;
^
../src/pr2_edict.c: In function ‘ED2_FindFieldOffset’:
../src/pr2_edict.c:54:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return f->ofs-((int)&(((edict_t *)0)->v));
^
../src/sv_demo.c: In function ‘SV_MVD_Record’:
../src/sv_demo.c:1105:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
memset(&demo, 0, ((int)&(((demo_t *)0)->mem_set_point)));
^
../src/sv_phys.c: In function ‘SV_CheckVelocity’:
../src/sv_phys.c:96:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if (IS_NAN(ent->v.velocity[i]))
^
../src/sv_phys.c:101:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if (IS_NAN(ent->v.origin[i]))
^
../src/vfs_os.c: In function ‘FSOS_ReadFile’:
../src/vfs_os.c:249:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, 1, loc->len, f);
^
../src/sv_main.c: In function ‘Rcon_Validate’:
../src/sv_main.c:1514:3: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)Cmd_Argv(0));
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c:1515:3: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)" ");
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c:1516:3: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)password1);
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c:1517:3: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)Cmd_Argv(1) + DIGEST_SIZE * 2);
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c:1518:3: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)" ");
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c:1520:4: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)Cmd_Argv(i));
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c:1521:4: warning: pointer targets in passing argument 1 of ‘SHA1_Update’ differ in signedness [-Wpointer-sign]
SHA1_Update((unsigned char*)" ");
^
In file included from ../src/qwsvdef.h:76:0,
from ../src/sv_main.c:22:
../src/sha1.h:61:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
void SHA1_Update (char* data);
^
../src/sv_main.c: In function ‘StringToFilter’:
../src/sv_main.c:1975:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
f->mask = *(unsigned *)m;
^
../src/sv_main.c:1976:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
f->compare = *(unsigned *)b;
^
../src/sv_main.c: In function ‘SV_ListIPVIP_f’:
../src/sv_main.c:2060:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipvip[i].compare;
^
../src/sv_main.c: In function ‘SV_WriteIPVIP_f’:
../src/sv_main.c:2090:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipvip[i].compare;
^
../src/sv_main.c: In function ‘SV_ListIP_f’:
../src/sv_main.c:2204:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipfilters[i].compare;
^
../src/sv_main.c: In function ‘SV_WriteIP_f’:
../src/sv_main.c:2246:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipfilters[i].compare;
^
../src/sv_main.c:2260:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipfilters[i].compare;
^
../src/sv_main.c: In function ‘SV_FilterPacket’:
../src/sv_main.c:2297:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
in = *(unsigned *)net_from.ip;
^
../src/sv_main.c: In function ‘Do_BanList’:
../src/sv_main.c:2321:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipfilters[i].compare;
^
../src/sv_main.c: In function ‘SV_Cmd_Banip_f’:
../src/sv_main.c:2572:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = f.compare;
^
../src/sv_main.c: In function ‘SV_Cmd_Banremove_f’:
../src/sv_main.c:2618:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned *)b = ipfilters[id].compare;
^
../src/sv_main.c: In function ‘SV_VIPbyIP’:
../src/sv_main.c:2637:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
in = *(unsigned *)adr.ip;
^
../src/vfs_pak.c: In function ‘FSPAK_LoadPackFile’:
../src/vfs_pak.c:297:6: warning: variable ‘read’ set but not used [-Wunused-but-set-variable]
int read;
^
../src/pcre/pcre.c: In function ‘pcre_compile’:
../src/pcre/pcre.c:5596:28: warning: ‘reqbyte’ may be used uninitialized in this function [-Wmaybe-uninitialized]
re->req_byte = ((reqbyte & REQ_CASELESS) != 0 &&
^
../src/pcre/pcre.c:5574:8: warning: ‘firstbyte’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (firstbyte < 0)
^
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: