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:
Markus Mäkelä
2018-04-20 14:58:38 +03:00
parent 0f0913fc99
commit 421e64ceeb
43 changed files with 57 additions and 121 deletions

View File

@ -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);