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

- Collector: #1651: removed compiler warning

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