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/test_server_events.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/unittests/test_server_events.c') diff --git a/tests/unittests/test_server_events.c b/tests/unittests/test_server_events.c index fb178ac2..a00eedfd 100644 --- a/tests/unittests/test_server_events.c +++ b/tests/unittests/test_server_events.c @@ -13,6 +13,8 @@ #include "ui/ui.h" #include "ui/stub_ui.h" #include "xmpp/muc.h" +#include "plugins/plugins.h" +#include "ui/window_list.h" void console_shows_online_presence_when_set_online(void **state) { -- cgit 1.4.1-2-gfad0