Closed illwieckz closed 7 years ago
Perhaps this line is a gcc bug:
ventrilo.c: In function ‘deal_with_ventrilo_packet’:
ventrilo.c:326:26: warning: ‘rawpkt’ may be used uninitialized in this function [-Wmaybe-uninitialized]
server->max_players = atoi( line + 12 );
^
gcc
complains about rawpkt
on a line where it is not evolved, and the line
variable was initialized like that:
line = strtok_ret( rawpkt, "\n", &last_line );
and rawpkt
is a function argument, so if the function is called, it is always initialized:
query_status_t deal_with_ventrilo_packet( struct qserver *server, char *rawpkt, int pktlen )
clang
does not complain.
All builds here are warning less
Currently: