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

@ -185,7 +185,6 @@ void check(XTestConnections& test)
}
std::string values;
MYSQL_ROW row;
int num_rows = mysql_num_rows(pRes);
test.add_result(num_rows != i_end, "Query returned %d rows when %d rows were expected",
num_rows, i_end);