mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
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
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user