[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-19 18:26:16 CET

Daniel Stenberg wrote:

> Howdy
>
> The flag -Wredundant-decls is highly annoying on my solaris 2.7 machine using
> gcc version 2.8.1, as the system headers seems to declare the same function
> (getopt()) multiple times. It gives me no less than 12 warnings on every
> source file in libsvn_client (and probably others as well, this module is the
> only one I checked and counted in detail).
>
> This flag is only present when I use the --with-maintainer-mode to configure.
>
> This is mostly informational. If the flag makes sense for the more active
> developers, then keep it.

Same story on HP-UX and AIX. I think we have to throw -Wredundant-decls
out. C allows multiple declarations if they're identical, so I don't see
the point of having this warning switched on.

-- 
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.