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

@ -5,13 +5,13 @@ static struct
{
const char* test_name;
const char* test_template;
} cnf_templates[] = {
} cnf_templates[] __attribute__((unused)) = {
@CNF_TEMPLATES@ {NULL, NULL}};
/** The default template to use */
static const char * default_template = "replication";
static const char * default_template __attribute__((unused)) = "replication";
/** This is the working directory for all tests */
static const char *test_dir = "@CMAKE_SOURCE_DIR@";
static const char *test_dir __attribute__((unused)) = "@CMAKE_SOURCE_DIR@";
#endif