[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: -Wredundant-decls

From: Branko Èibej <brane_at_xbc.nu>
Date: 2000-12-20 23:57:53 CET

Greg Hudson wrote:

> (Why would anyone ever want to include <sys/errno.h> in userland
> code?)

Because nobody ever has a choice. :-).

<errno.h> on HP-UX 10.20 declares "extern int errno", then includes
<sys/errno.h>, which declares "extern int errno". Perfectly valid C, but
gcc trips over it with that warning enabled.

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.