[Expat-bugs] [ expat-Bugs-1236372 ] v1.95.8 compile warnings lib/xmlparse.c

SourceForge.net noreply at sourceforge.net
Tue Jul 12 11:25:47 CEST 2005


Bugs item #1236372, was opened at 2005-07-11 19:08
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1236372&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: v1.95.8 compile warnings lib/xmlparse.c

Initial Comment:
On Solaris 9 Sparc, using Sun CC the following warnings appear when doing a 'make' on expat v1.95.8

/bin/bash ./libtool --silent --mode=compile cc -g -DHAVE_EXPAT_CONFIG_H   -I./li
b -I. -o lib/xmlparse.lo -c lib/xmlparse.c
"lib/xmlparse.c", line 1572: warning: enum type mismatch: op "="
"lib/xmlparse.c", line 1578: warning: enum type mismatch: op "="
"lib/xmlparse.c", line 1586: warning: enum type mismatch: op "="
"lib/xmlparse.c", line 1719: warning: enum type mismatch: op "="
"lib/xmlparse.c", line 1725: warning: enum type mismatch: op "="
"lib/xmlparse.c", line 1733: warning: enum type mismatch: op "="

The following changes appear to fix the problem
============================================
*** xmlparse.c.orig     Thu Jul 22 22:02:41 2004
--- xmlparse.c  Wed Jun  8 14:41:53 2005
***************
*** 1539,1545 ****
  XML_ParseBuffer(XML_Parser parser, int len, int isFinal)
  {
    const char *start;
!   enum XML_Error result = XML_STATUS_OK;
  
    switch (parsing) {
    case XML_SUSPENDED:
--- 1539,1545 ----
  XML_ParseBuffer(XML_Parser parser, int len, int isFinal)
  {
    const char *start;
!   enum XML_Status result = XML_STATUS_OK;
  
    switch (parsing) {
    case XML_SUSPENDED:
***************
*** 1698,1704 ****
  enum XML_Status XMLCALL
  XML_ResumeParser(XML_Parser parser)
  {
!   enum XML_Error result = XML_STATUS_OK;
  
    if (parsing != XML_SUSPENDED) {
      errorCode = XML_ERROR_NOT_SUSPENDED;
--- 1698,1704 ----
  enum XML_Status XMLCALL
  XML_ResumeParser(XML_Parser parser)
  {
!   enum XML_Status result = XML_STATUS_OK;
  
    if (parsing != XML_SUSPENDED) {
      errorCode = XML_ERROR_NOT_SUSPENDED;
============================================

Regards,
Todd Olson
tco2  -a--t-  cornell  -d--o--t-  edu


----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2005-07-12 05:25

Message:
Logged In: YES 
user_id=290026

I believe this has been fixed in CVS a while ago.
Please check it out.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1236372&group_id=10127


More information about the Expat-bugs mailing list