mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
small enhancement to assure ATTRIBUTE_UNUSED appears after the variable
* python/generator.py: small enhancement to assure ATTRIBUTE_UNUSED appears after the variable declaration. * valid.c: trivial change to eliminate a warning message
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Tue Nov 4 15:28:07 PST 2003 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* python/generator.py: small enhancement to assure ATTRIBUTE_UNUSED
|
||||||
|
appears after the variable declaration.
|
||||||
|
* valid.c: trivial change to eliminate a warning message
|
||||||
|
|
||||||
Tue Nov 4 11:24:04 CET 2003 Daniel Veillard <daniel@veillard.com>
|
Tue Nov 4 11:24:04 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* configure.in NEWS doc/*: preparing release 2.6.2, updated and
|
* configure.in NEWS doc/*: preparing release 2.6.2, updated and
|
||||||
|
@ -464,10 +464,11 @@ def print_function_wrapper(name, output, export, include):
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
output.write("PyObject *\n")
|
output.write("PyObject *\n")
|
||||||
output.write("libxml_%s(ATTRIBUTE_UNUSED PyObject *self," % (name))
|
output.write("libxml_%s(PyObject *self ATTRIBUTE_UNUSED," % (name))
|
||||||
|
output.write(" PyObject *args")
|
||||||
if format == "":
|
if format == "":
|
||||||
output.write("ATTRIBUTE_UNUSED ")
|
output.write(" ATTRIBUTE_UNUSED")
|
||||||
output.write(" PyObject *args) {\n")
|
output.write(") {\n")
|
||||||
if ret[0] != 'void':
|
if ret[0] != 'void':
|
||||||
output.write(" PyObject *py_retval;\n")
|
output.write(" PyObject *py_retval;\n")
|
||||||
if c_return != "":
|
if c_return != "":
|
||||||
|
1
valid.c
1
valid.c
@ -6072,7 +6072,6 @@ xmlValidateElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr elem) {
|
|||||||
}
|
}
|
||||||
ns = elem->nsDef;
|
ns = elem->nsDef;
|
||||||
while (ns != NULL) {
|
while (ns != NULL) {
|
||||||
value = ns->href;
|
|
||||||
ret &= xmlValidateOneNamespace(ctxt, doc, elem, ns->prefix,
|
ret &= xmlValidateOneNamespace(ctxt, doc, elem, ns->prefix,
|
||||||
ns, ns->href);
|
ns, ns->href);
|
||||||
ns = ns->next;
|
ns = ns->next;
|
||||||
|
Reference in New Issue
Block a user