+Tue Nov 4 19:08:53 PST 2003 William Brack <wbrack@mmm.com.hk>
+
+ Minor enhancements to eliminate compile/test warnings
+ * libxslt/xsltconfig.h.in, libexstl/exsltconfig.h.in:
+ changed macro ATTRIBUTE_UNUSED for gcc so that, if undefined,
+ it's defined as __attribute__((unused))
+ * python/libxslt.c: fixed ATTRIBUTE_UNUSED to appear after
+ variable declaration
+ * libxslt/preproc.c: minor change to get rid of unused var/code
+
Tue Nov 4 14:21:06 CET 2003 Daniel Veillard <daniel@veillard.com>
* doc/* NEWS: preparing release 1.1.0
xsltTransformFunction function ATTRIBUTE_UNUSED) {
xsltStylePreCompPtr comp;
xmlChar *filename = NULL;
- xmlChar *URL = NULL;
comp = xsltNewStylePreComp(style, XSLT_FUNC_DOCUMENT);
if (comp == NULL)
if (!comp->has_filename) {
goto error;
}
-
- if (filename != NULL) {
- comp->filename = filename;
- } else {
- comp->filename = NULL;
- }
+ comp->filename = filename;
error:
return ((xsltElemPreCompPtr) comp);
/*
- * libxslt.c: this modules implements the main part of the glue of the
+ libxslt.c: this modules implements the main part of the glue of the
* libxslt library and the Python interpreter. It provides the
* entry points where an automatically generated stub is either
* unpractical or would not match cleanly the Python model.
return (NULL);
}
- args = Py_BuildValue("(OOO)",
+ args = Py_BuildValue((char *)"(OOO)",
libxslt_xsltStylesheetPtrWrap(style),
libxml_xmlNodePtrWrap(inst),
pyobj_element_f);
return;
}
- args = Py_BuildValue("OOOO",
+ args = Py_BuildValue((char *)"OOOO",
libxslt_xsltTransformContextPtrWrap(ctxt),
libxml_xmlNodePtrWrap(node),
libxml_xmlNodePtrWrap(inst),
}
PyObject *
-libxslt_xsltSaveResultToString(PyObject *self, PyObject *args) {
+libxslt_xsltSaveResultToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *py_retval; /* our final return value, a python string */
xmlChar *buffer;
int size = 0;
static PyObject *libxslt_xsltPythonErrorFuncCtxt = NULL;
static void
-libxslt_xsltErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx, const char *msg,
+libxslt_xsltErrorFuncHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...)
{
int size;
}
PyObject *
-libxslt_xsltRegisterErrorHandler(ATTRIBUTE_UNUSED PyObject * self,
+libxslt_xsltRegisterErrorHandler(PyObject * self ATTRIBUTE_UNUSED,
PyObject * args)
{
PyObject *py_retval;