From 8e4e5fd8b258f7e3db8a5356cfc8ccddddebd150 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 5 Apr 2011 13:50:08 +0200 Subject: [PATCH 1/1] Mods to tests to avoid clang warnings --- test/test_file_glob.c | 2 +- test/test_libstemmer.c | 1 + test/test_record_conv.c | 8 ++++---- test/test_retrieval.c | 8 ++++---- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/test/test_file_glob.c b/test/test_file_glob.c index 029382b..6812e38 100644 --- a/test/test_file_glob.c +++ b/test/test_file_glob.c @@ -33,7 +33,7 @@ void tst_with_path(const char *tpath) yaz_file_globfree(&glob_res); } -static check_file(const char *got, const char *expect) +static int check_file(const char *got, const char *expect) { const char *f = got; size_t l_match = strlen(expect); diff --git a/test/test_libstemmer.c b/test/test_libstemmer.c index a2ea678..3c18e04 100644 --- a/test/test_libstemmer.c +++ b/test/test_libstemmer.c @@ -8,6 +8,7 @@ #include #include +#include #include diff --git a/test/test_record_conv.c b/test/test_record_conv.c index 2612f0e..9978fda 100644 --- a/test/test_record_conv.c +++ b/test/test_record_conv.c @@ -2,16 +2,16 @@ * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif + #include #include #include #include #include -#if HAVE_CONFIG_H -#include -#endif - #if YAZ_HAVE_XML2 #include diff --git a/test/test_retrieval.c b/test/test_retrieval.c index 6983739..c35cbc9 100644 --- a/test/test_retrieval.c +++ b/test/test_retrieval.c @@ -2,16 +2,16 @@ * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif + #include #include #include #include #include -#if HAVE_CONFIG_H -#include -#endif - #if YAZ_HAVE_XSLT #include -- 1.7.10.4