[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 Hudson <ghudson_at_MIT.EDU>
Date: 2000-12-20 20:06:47 CET

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

It would be interesting to make a feature test with an interface
something like like:

        AC_CHECK_WARNINGS(-Wredundant-decls -Wall,stdio.h sys/types.h
                          X11/Xlib.h)

which would try each of the listed warning flags against all the
listed header files and spit out the warning flags which don't trip up
on headers. (You'd also filter out the warning flags which don't work
with your chosen compiler.) But that's probably well beyond the
amount of effort we want to put into the problem.
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.