[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: Greg Stein <gstein_at_lyra.org>
Date: 2000-12-20 12:19:31 CET

On Tue, Dec 19, 2000 at 06:26:16PM +0100, Branko Cibej wrote:
> 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.

I set that the other day as a way to track down issues within SVN itself. It
"worked fine for me" :-)

But yes... all that stuff can be annoying. Why don't we take it out for now.
I can always add it back in at some future point on a local compile.

Oh... Hmm. I bet that I could come up with a bit of autoconf magic to enable
it only on boxes that use glibc. (or at least hardcode to linux boxes at a
minimum)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.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.