Take -Wall into use for tests
Take almost all warnings into use except `format-overflow` and `unused-function`. format-overflow needs to be handled in a separate commit.
This commit is contained in:
@ -107,7 +107,7 @@ char * get_maxinfo(const char * page, TestConnections* Test)
|
||||
//Test->tprintf("Query is:\n<<START>>\n%s<<END>>\n", get);
|
||||
|
||||
//Send the query to the server
|
||||
int sent = 0;
|
||||
size_t sent = 0;
|
||||
while (sent < strlen(get))
|
||||
{
|
||||
tmpres = send(sock, get + sent, strlen(get) - sent, 0);
|
||||
@ -178,7 +178,7 @@ char * read_sc(int sock)
|
||||
int send_so(int sock, char * data)
|
||||
{
|
||||
int tmpres;
|
||||
int sent = 0;
|
||||
size_t sent = 0;
|
||||
while (sent < strlen(data))
|
||||
{
|
||||
tmpres = send(sock, data + sent, strlen(data) - sent, 0);
|
||||
|
||||
Reference in New Issue
Block a user