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

Re: gcc 3.3 warnings

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-06-16 22:48:31 CEST

Blair Zajac <blair@orcaware.com> writes:

> In file included from subversion/mod_dav_svn/activity.c:21:
> /opt/i386-linux/installed/apache-2.1-cvs-2003061600/include/httpd.h:1456: warnin
> g: declaration of `exp' shadows a global declaration
> <built-in>:0: warning: shadowed declaration is here

Whether gcc should issue the warning when math.h has not been included
is debatable. Whether apache should use names that match those in the
standard C library is also debatable.

> Maybe this has something to do with the -std=c89 option.

I don't think so. Adding -fno-builtin-exp will disable gcc's builtin
exp and make the warning go away, but it would probably be better for
Apache to change httpd.h. The apache list would be the place to
discuss that.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 16 22:49:36 2003

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.