Mods to tests to avoid clang warnings
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Apr 2011 11:50:08 +0000 (13:50 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Apr 2011 11:50:08 +0000 (13:50 +0200)
test/test_file_glob.c
test/test_libstemmer.c
test/test_record_conv.c
test/test_retrieval.c

index 029382b..6812e38 100644 (file)
@@ -33,7 +33,7 @@ void tst_with_path(const char *tpath)
     yaz_file_globfree(&glob_res);
 }
 
     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);
 {
     const char *f = got;
     size_t l_match = strlen(expect);
index a2ea678..3c18e04 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include <yaz/test.h>
 
 
 #include <yaz/test.h>
 
index 2612f0e..9978fda 100644 (file)
@@ -2,16 +2,16 @@
  * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
  * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <yaz/record_conv.h>
 #include <yaz/test.h>
 #include <yaz/wrbuf.h>
 #include <string.h>
 #include <yaz/log.h>
 
 #include <yaz/record_conv.h>
 #include <yaz/test.h>
 #include <yaz/wrbuf.h>
 #include <string.h>
 #include <yaz/log.h>
 
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #if YAZ_HAVE_XML2
 
 #include <libxml/parser.h>
 #if YAZ_HAVE_XML2
 
 #include <libxml/parser.h>
index 6983739..c35cbc9 100644 (file)
@@ -2,16 +2,16 @@
  * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
  * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <yaz/retrieval.h>
 #include <yaz/test.h>
 #include <yaz/wrbuf.h>
 #include <string.h>
 #include <yaz/log.h>
 
 #include <yaz/retrieval.h>
 #include <yaz/test.h>
 #include <yaz/wrbuf.h>
 #include <string.h>
 #include <yaz/log.h>
 
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #if YAZ_HAVE_XSLT
 
 #include <libxml/parser.h>
 #if YAZ_HAVE_XSLT
 
 #include <libxml/parser.h>