Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 81719 invoked by uid 500); 8 Mar 2001 20:27:05 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 81602 invoked from network); 8 Mar 2001 20:27:03 -0000 Date: Thu, 8 Mar 2001 12:27:04 -0800 (PST) From: X-Sender: To: Subject: Re: [PATCH] expat warnings. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Argh! Helps to attach the patch! Index: xmlparse.c =================================================================== RCS file: /home/cvs/apr-util/xml/expat/lib/xmlparse.c,v retrieving revision 1.1 diff -u -d -b -w -u -r1.1 xmlparse.c --- xmlparse.c 2001/02/28 14:41:26 1.1 +++ xmlparse.c 2001/03/08 18:48:57 @@ -26,6 +26,7 @@ #endif /* ndef COMPILED_FROM_DSP */ #include +#include #ifdef XML_UNICODE #define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX @@ -2752,8 +2753,8 @@ parser)) return XML_ERROR_NO_MEMORY; if (attlistDeclHandler && declAttributeType) { - if (*declAttributeType == '(' - || *declAttributeType == 'N' && declAttributeType[1] == 'O') { + if ((*declAttributeType == '(' + || *declAttributeType == 'N') && declAttributeType[1] == 'O') { /* Enumerated or Notation type */ if (! poolAppendChar(&tempPool, ')') || ! poolAppendChar(&tempPool, '\0')) @@ -2786,8 +2787,8 @@ && !defineAttribute(declElementType, declAttributeId, declAttributeIsCdata, 0, attVal, parser)) return XML_ERROR_NO_MEMORY; if (attlistDeclHandler && declAttributeType) { - if (*declAttributeType == '(' - || *declAttributeType == 'N' && declAttributeType[1] == 'O') { + if ((*declAttributeType == '(' + || *declAttributeType == 'N') && declAttributeType[1] == 'O') { /* Enumerated or Notation type */ if (! poolAppendChar(&tempPool, ')') || ! poolAppendChar(&tempPool, '\0')) On Thu, 8 Mar 2001 rbb@covalent.net wrote: > > Expat is generating a couple of warnings that are really bothering me, so > here is a patch to fix all but three of them. > > The three that are remaining can be solved by just removing the RCSId > variable from the .c files. > > Ryan > > > _______________________________________________________________________________ > Ryan Bloom rbb@apache.org > 406 29th St. > San Francisco, CA 94131 > ------------------------------------------------------------------------------- > > _______________________________________________________________________________ Ryan Bloom rbb@apache.org 406 29th St. San Francisco, CA 94131 -------------------------------------------------------------------------------