[ expat-Bugs-563184 ] warnings for close/read in xmlfile.c

noreply@sourceforge.net noreply@sourceforge.net
Mon Jun 3 10:27:04 2002


Bugs item #563184, was opened at 2002-05-31 23:19
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=563184&group_id=10127

Category: Build control
Group: Platform Specific
Status: Open
>Resolution: Later
Priority: 2
Submitted By: Patrick McCormick (patrickmc)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: warnings for close/read in xmlfile.c

Initial Comment:
On Solaris 7 with tip of tree, the build throws warnings:

gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-
prototypes -fexceptions   -Ilib -I. -o xmlwf/xmlfile.o -c 
xmlwf/xmlfile.c
xmlwf/xmlfile.c: In function `processStream':
xmlwf/xmlfile.c:155: warning: implicit declaration of 
function `close'
xmlwf/xmlfile.c:160: warning: implicit declaration of 
function `read'

This is because unistd.h isn't included.

I see that in xmlfile.c it will be included if 
_POSIX_SOURCE is defined, but I'm not sure what that 
means or if the config should be defining that.

This is really low priority, and the only warning I see 
when building expat.


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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-03 13:25

Message:
Logged In: YES 
user_id=3066

We're avoiding code changes before release; this will wait
for Expat 1.95.4.

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

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