From e3f2ca7d1027435dec6e4bb5aa6dae7177c6315d Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Wed, 31 Oct 2018 18:35:59 +0200 Subject: 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. --- tests/unittests/tools/stub_http_upload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unittests/tools') diff --git a/tests/unittests/tools/stub_http_upload.c b/tests/unittests/tools/stub_http_upload.c index 59a7bace..7bf925db 100644 --- a/tests/unittests/tools/stub_http_upload.c +++ b/tests/unittests/tools/stub_http_upload.c @@ -21,9 +21,9 @@ typedef struct http_upload_t { //GSList *upload_processes; -void* http_file_put(void *userdata) {} +void* http_file_put(void *userdata) { return NULL; } -char* file_mime_type(const char* const file_name) {} -off_t file_size(const char* const file_name) {} +char* file_mime_type(const char* const file_name) { return NULL; } +off_t file_size(const char* const file_name) { return 0; } #endif -- cgit 1.4.1-2-gfad0