about summary refs log tree commit diff stats
path: root/tests/unittests/test_server_events.c
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2018-10-31 18:35:59 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2018-10-31 18:35:59 +0200
commite3f2ca7d1027435dec6e4bb5aa6dae7177c6315d (patch)
tree7167bca163668b4f87feb64458bb3b3a4019ed9d /tests/unittests/test_server_events.c
parent21fffb1e86db2a6fa65f650869f8e82d2031b114 (diff)
downloadprofani-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/test_server_events.c')
-rw-r--r--tests/unittests/test_server_events.c2
1 files changed, 2 insertions, 0 deletions
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)
 {