tests: remove cflag -w and fix warnings
The flag hides errors. But we want unit tests to be correct in order to reveal errors in the main code. The patch removes tests_unittests_unittests_CFLAGS which makes autotools use AM_CFLAGS instead. Therefore, unit tests are built with flags derived from configure.ac.
This commit is contained in:
@@ -52,8 +52,8 @@ int main(int argc, char* argv[]) {
|
||||
if (codeset) {
|
||||
printf(" CODESET: %s\n", codeset);
|
||||
}
|
||||
printf(" MB_CUR_MAX: %d\n", MB_CUR_MAX);
|
||||
printf(" MB_LEN_MAX: %d\n", MB_LEN_MAX);
|
||||
printf(" MB_CUR_MAX: %d\n", (int)MB_CUR_MAX);
|
||||
printf(" MB_LEN_MAX: %d\n", (int)MB_LEN_MAX);
|
||||
|
||||
const UnitTest all_tests[] = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user