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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user