diff options
author | Sergey Udaltsov <svu@gnome.org> | 2004-11-04 19:14:48 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2004-11-04 19:14:48 +0000 |
commit | 3f15f54b9e9a14adf70060789427bfe08f8cf744 (patch) | |
tree | 4c1b14d9413fff828a1361919de11282769d5e04 /tests | |
parent | 0880a28805a1138058923d24a5bc2b34f82c2022 (diff) | |
download | libxklavier-3f15f54b9e9a14adf70060789427bfe08f8cf744.tar.gz |
small prerelease polishv.1.11
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/test_config.c | 2 | ||||
-rw-r--r-- | tests/test_monitor.c | 3 |
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 ); |