]> granicus.if.org Git - php/commitdiff
Kill warnings
authorSascha Schumann <sas@php.net>
Fri, 11 Feb 2000 13:25:26 +0000 (13:25 +0000)
committerSascha Schumann <sas@php.net>
Fri, 11 Feb 2000 13:25:26 +0000 (13:25 +0000)
ext/xml/expat/xmlparse/xmlparse.c
ext/xml/expat/xmltok/xmltok.c
ext/xml/expat/xmltok/xmltok_impl.c

index 5bba88709a76b5265f79aea50918f332ae7e33ff..aba28061d2d1e8ee8882fa19a8c43c4b8d7925cc 100644 (file)
@@ -190,7 +190,9 @@ static Processor prologInitProcessor;
 static Processor contentProcessor;
 static Processor cdataSectionProcessor;
 static Processor epilogProcessor;
+#if 0
 static Processor errorProcessor;
+#endif
 static Processor externalEntityInitProcessor;
 static Processor externalEntityInitProcessor2;
 static Processor externalEntityInitProcessor3;
@@ -2333,6 +2335,7 @@ enum XML_Error epilogProcessor(XML_Parser parser,
   }
 }
 
+#if 0
 static
 enum XML_Error errorProcessor(XML_Parser parser,
                              const char *s,
@@ -2341,6 +2344,7 @@ enum XML_Error errorProcessor(XML_Parser parser,
 {
   return errorCode;
 }
+#endif
 
 static enum XML_Error
 storeAttributeValue(XML_Parser parser, const ENCODING *enc, int isCdata,
@@ -2483,7 +2487,9 @@ enum XML_Error storeEntityValue(XML_Parser parser,
                                const char *entityTextPtr,
                                const char *entityTextEnd)
 {
+#if 0
   const ENCODING *internalEnc = ns ? XmlGetInternalEncodingNS() : XmlGetInternalEncoding();
+#endif
   STRING_POOL *pool = &(dtd.pool);
   entityTextPtr += encoding->minBytesPerChar;
   entityTextEnd -= encoding->minBytesPerChar;
index 8d058d41e580c7cd4af341fd4d2a08cee2a925ba..d106b1b3a904d3b1d61d1f348101259362c69aa4 100644 (file)
@@ -1491,7 +1491,7 @@ int initScan(const ENCODING **encodingTable,
       break;
     }
   }
-  *encPtr = encodingTable[INIT_ENC_INDEX(enc)];
+  *encPtr = encodingTable[(int)INIT_ENC_INDEX(enc)];
   return XmlTok(*encPtr, state, ptr, end, nextTokPtr);
 }
 
index f343b3fa0f769d2c95a9170e6f2cabeb0e4ece77..c52539be8afde81e7a6051af724408f47396960a 100644 (file)
@@ -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)) {