summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/test_config.c2
-rw-r--r--tests/test_monitor.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 70815c9..9d844da 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -4,7 +4,7 @@ test_config_SOURCES=test_config.c
test_monitor_SOURCES=test_monitor.c
-AM_CFLAGS=-I$(includedir) -I$(x_includes) -I$(top_srcdir)
+AM_CFLAGS=-Wall -Werror -I$(includedir) -I$(x_includes) -I$(top_srcdir)
-AM_LDFLAGS=$(top_builddir)/libxklavier/libxklavier.la -lX11
+AM_LDFLAGS=$(top_builddir)/libxklavier/libxklavier.la -L$(x_libraries) -lX11
diff --git a/tests/test_config.c b/tests/test_config.c
index a91860c..ad2c4f0 100644
--- a/tests/test_config.c
+++ b/tests/test_config.c
@@ -1,6 +1,8 @@
#include <config.h>
#include <stdio.h>
#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
#include <X11/Xlib.h>
#include <libxklavier/xklavier.h>
#include <libxklavier/xklavier_config.h>
diff --git a/tests/test_monitor.c b/tests/test_monitor.c
index 73c86d2..8808b62 100644
--- a/tests/test_monitor.c
+++ b/tests/test_monitor.c
@@ -15,7 +15,7 @@ static void printUsage()
printf( " -h - Show this help\n" );
}
-static void dump( XklConfigRecPtr ptr )
+void dump( XklConfigRecPtr ptr )
{
int i,j;
char**p;
@@ -87,7 +87,6 @@ int main( int argc, char * argv[] )
while (1)
{
- int grp;
XNextEvent( dpy, &ev.core );
if ( XklFilterEvents( &ev.core ) )
XklDebug( 200, "Unknown event %d\n", ev.type );