From 0ba59239d92a0ea82d6515f15cc0723a61ef7400 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 10 Feb 2002 13:20:39 +0000 Subject: Tentatively fixed #69655 , make compiling with -Wredundant-decls clean. * HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c globals.c parser.c threads.c tree.c valid.c xmlmemory.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlmemory.h include/libxml/xpathInternals.h: Tentatively fixed #69655 , make compiling with -Wredundant-decls clean. * python/libxml.c: fixed a warning. Daniel --- build_glob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_glob.py') diff --git a/build_glob.py b/build_glob.py index 33856cd1..dc42c245 100755 --- a/build_glob.py +++ b/build_glob.py @@ -66,7 +66,6 @@ if __name__ == "__main__": fields = string.split(line, ",") # Update the header file writeline(global_functions_hdr) - writeline(global_functions_hdr, "#ifdef LIBXML_THREAD_ENABLED") global_functions_hdr.write("extern "+fields[0]+" *") if len(fields) == 3: global_functions_hdr.write("(*") @@ -74,6 +73,7 @@ if __name__ == "__main__": if len(fields) == 3: global_functions_hdr.write(")"+fields[2]) writeline(global_functions_hdr,";") + writeline(global_functions_hdr, "#ifdef LIBXML_THREAD_ENABLED") writeline(global_functions_hdr,"#define "+fields[1]+" \\") writeline(global_functions_hdr,"(*(__"+fields[1]+"()))") writeline(global_functions_hdr,"#else") @@ -84,7 +84,7 @@ if __name__ == "__main__": writeline(global_functions_hdr,"#endif") # Update the implementation file writeline(global_functions_impl) - writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";") +# writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";") writeline(global_functions_impl, "#undef\t"+fields[1]) writeline(global_functions_impl, fields[0]+" *") if len(fields) == 3: -- cgit v1.2.1