diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2018-10-31 18:35:59 +0200 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2018-10-31 18:35:59 +0200 |
commit | e3f2ca7d1027435dec6e4bb5aa6dae7177c6315d (patch) | |
tree | 7167bca163668b4f87feb64458bb3b3a4019ed9d /tests/unittests/tools | |
parent | 21fffb1e86db2a6fa65f650869f8e82d2031b114 (diff) | |
download | profani-tty-e3f2ca7d1027435dec6e4bb5aa6dae7177c6315d.tar.gz |
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.
Diffstat (limited to 'tests/unittests/tools')
-rw-r--r-- | tests/unittests/tools/stub_http_upload.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |