Commit 74f99d25 authored by Andreas Jung's avatar Andreas Jung

source code adjustments to avoid compiler warnings

parent ca8fad92
...@@ -503,7 +503,6 @@ xmlparse_dealloc(xmlparseobject *self) { ...@@ -503,7 +503,6 @@ xmlparse_dealloc(xmlparseobject *self) {
static PyObject * static PyObject *
xmlparse_getattr(xmlparseobject *self, char *name) { xmlparse_getattr(xmlparseobject *self, char *name) {
long rv;
#define GET_HANDLER(N) \ #define GET_HANDLER(N) \
if (strcmp(name, #N) == 0) { \ if (strcmp(name, #N) == 0) { \
...@@ -714,9 +713,9 @@ static char pyexpat_module_documentation[] = ...@@ -714,9 +713,9 @@ static char pyexpat_module_documentation[] =
; ;
void void
initdcpyexpat() { initdcpyexpat(void) {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.2 $"; char *rev="$Revision: 1.3 $";
Xmlparsetype.ob_type = &PyType_Type; Xmlparsetype.ob_type = &PyType_Type;
......
...@@ -2483,7 +2483,6 @@ enum XML_Error storeEntityValue(XML_Parser parser, ...@@ -2483,7 +2483,6 @@ enum XML_Error storeEntityValue(XML_Parser parser,
const char *entityTextPtr, const char *entityTextPtr,
const char *entityTextEnd) const char *entityTextEnd)
{ {
const ENCODING *internalEnc = ns ? XmlGetInternalEncodingNS() : XmlGetInternalEncoding();
STRING_POOL *pool = &(dtd.pool); STRING_POOL *pool = &(dtd.pool);
entityTextPtr += encoding->minBytesPerChar; entityTextPtr += encoding->minBytesPerChar;
entityTextEnd -= encoding->minBytesPerChar; entityTextEnd -= encoding->minBytesPerChar;
......
...@@ -271,12 +271,12 @@ int XMLTOKAPI XmlParseXmlDecl(int isGeneralTextEntity, ...@@ -271,12 +271,12 @@ int XMLTOKAPI XmlParseXmlDecl(int isGeneralTextEntity,
int *standalonePtr); int *standalonePtr);
int XMLTOKAPI XmlInitEncoding(INIT_ENCODING *, const ENCODING **, const char *name); int XMLTOKAPI XmlInitEncoding(INIT_ENCODING *, const ENCODING **, const char *name);
const ENCODING XMLTOKAPI *XmlGetUtf8InternalEncoding(); const ENCODING XMLTOKAPI *XmlGetUtf8InternalEncoding(void);
const ENCODING XMLTOKAPI *XmlGetUtf16InternalEncoding(); const ENCODING XMLTOKAPI *XmlGetUtf16InternalEncoding(void);
int XMLTOKAPI XmlUtf8Encode(int charNumber, char *buf); int XMLTOKAPI XmlUtf8Encode(int charNumber, char *buf);
int XMLTOKAPI XmlUtf16Encode(int charNumber, unsigned short *buf); int XMLTOKAPI XmlUtf16Encode(int charNumber, unsigned short *buf);
int XMLTOKAPI XmlSizeOfUnknownEncoding(); int XMLTOKAPI XmlSizeOfUnknownEncoding(void);
ENCODING XMLTOKAPI * ENCODING XMLTOKAPI *
XmlInitUnknownEncoding(void *mem, XmlInitUnknownEncoding(void *mem,
int *table, int *table,
...@@ -293,8 +293,8 @@ int XMLTOKAPI XmlParseXmlDeclNS(int isGeneralTextEntity, ...@@ -293,8 +293,8 @@ int XMLTOKAPI XmlParseXmlDeclNS(int isGeneralTextEntity,
const ENCODING **namedEncodingPtr, const ENCODING **namedEncodingPtr,
int *standalonePtr); int *standalonePtr);
int XMLTOKAPI XmlInitEncodingNS(INIT_ENCODING *, const ENCODING **, const char *name); int XMLTOKAPI XmlInitEncodingNS(INIT_ENCODING *, const ENCODING **, const char *name);
const ENCODING XMLTOKAPI *XmlGetUtf8InternalEncodingNS(); const ENCODING XMLTOKAPI *XmlGetUtf8InternalEncodingNS(void);
const ENCODING XMLTOKAPI *XmlGetUtf16InternalEncodingNS(); const ENCODING XMLTOKAPI *XmlGetUtf16InternalEncodingNS(void);
ENCODING XMLTOKAPI * ENCODING XMLTOKAPI *
XmlInitUnknownEncodingNS(void *mem, XmlInitUnknownEncodingNS(void *mem,
int *table, int *table,
......
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