Commit 483cbe55 authored by Andreas Jung's avatar Andreas Jung

- Collector: #1651: removed compiler warning

parent baa18866
......@@ -51,6 +51,8 @@ Zope Changes
Bugs fixed
- Collector: #1651: removed compiler warning
- Collector #1661: make 'python-check-interval' setting in zope.conf
actually work as documented. This setting allows for important
tuning opportunities for production Zope servers.
......
......@@ -70,8 +70,8 @@ my_StartElementHandler(void *userdata, const char *name, const char **atts) {
PyObject *rv;
PyObject *attrs_obj;
int attrs_len;
const char **attrs_p, **attrs_k;
const char **attrs_p;
const char **attrs_k = atts;
if (self->StartElementHandler != Py_None) {
if (self->attrdict) {
......@@ -715,7 +715,7 @@ static char pyexpat_module_documentation[] =
void
initdcpyexpat(void) {
PyObject *m, *d;
char *rev="$Revision: 1.4 $";
static const char *rev="$Revision: 1.4 $";
Xmlparsetype.ob_type = &PyType_Type;
......@@ -726,7 +726,7 @@ initdcpyexpat(void) {
d = PyModule_GetDict(m);
ErrorObject = PyString_FromString("pyexpat.error");
PyDict_SetItemString(d, "error", ErrorObject);
PyDict_SetItemString(d, "API_Revision", PyString_FromString(rev));
#define MYCONST(name) \
PyDict_SetItemString(d, #name, PyInt_FromLong(name))
......
......@@ -175,7 +175,7 @@ struct encoding {
const unsigned short *toLim);
int minBytesPerChar;
char isUtf8;
char isUtf16;
int isUtf16;
};
/*
......
......@@ -593,7 +593,7 @@ int PREFIX(scanAtts)(const ENCODING *enc, const char *ptr, const char *end,
/* fall through */
case BT_EQUALS:
{
int open;
int open = 0;
#ifdef XML_NS
hadColon = 0;
#endif
......@@ -1391,7 +1391,7 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
{
enum { other, inName, inValue } state = inName;
int nAtts = 0;
int open;
int open = 0;
for (ptr += MINBPC(enc);; ptr += MINBPC(enc)) {
switch (BYTE_TYPE(enc, ptr)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment