From: Adam Dickmeiss Date: Tue, 5 Apr 2011 11:50:08 +0000 (+0200) Subject: Mods to tests to avoid clang warnings X-Git-Tag: v4.2.0~48 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=8e4e5fd8b258f7e3db8a5356cfc8ccddddebd150;hp=44480613eaf589ad4cad250a3ef0bd9299b26c50 Mods to tests to avoid clang warnings --- 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