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

@ -30,7 +30,7 @@ int main(int argc, char *argv[])
Test->set_timeout(60);
Test->repl->change_master(1, 0);
Test->tprintf("executing 3 INSERTs\n");
for (int i = 0; i++; i < 3)
for (int i = 0; i < 3; i++)
{
Test->set_timeout(60);
sprintf(sql, "INSERT INTO t1 (x1, fl) VALUES(%d, 2);", i);