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:
@@ -1,3 +1,4 @@
|
||||
#include "xmpp/resource.h"
|
||||
#include "common.h"
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
@@ -316,8 +317,8 @@ _lists_equal(GSList *a, GSList *b)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
curra = g_list_next(curra);
|
||||
currb = g_list_next(currb);
|
||||
curra = g_slist_next(curra);
|
||||
currb = g_slist_next(currb);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user