You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Blair Zajac <bl...@orcaware.com> on 2003/06/16 19:49:24 UTC
gcc 3.3 warnings
I'm seeing the following warnings when compiling and .c that includes
httpd.h:
/bin/sh /export/home1/blair/Code/SCMs/Subversion/s/libtool --silent --mode=compi
le gcc -DLINUX=2 -D_REENTRANT -DAPR_POOL_DEBUG=1 -D_XOPEN_SOURCE=500 -D_BSD_SOUR
CE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -std=c89 -Wall -Wpointer-arith -Wwrite-s
trings -Wshadow -DSVN_DEBUG -I/usr/kerberos/include -pthread -DNEON_ZLIB -DNE
ON_SSL -I/opt/i386-linux/installed/apache-2.1-cvs-2003061600/include -I./subve
rsion/include -I. -I/export/home1/blair/Code/SCMs/Subversion/s/neon/src -I/opt/i
386-linux/installed/subversion-0.24.1/include/neon -I/usr/kerberos/include -I/
opt/i386-linux/db-4.1/include -I/opt/i386-linux/installed/apache-2.1-cvs-200306
1600/include -I/opt/i386-linux/installed/apache-2.1-cvs-2003061600/include -I/
opt/i386-linux/db-4.1/include -o subversion/mod_dav_svn/activity.lo -c ./subvers
ion/mod_dav_svn/activity.c
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
/opt/i386-linux/installed/apache-2.1-cvs-2003061600/include/httpd.h:1464: warnin
g: declaration of `exp' shadows a global declaration
<built-in>:0: warning: shadowed declaration is here
This is with gcc 3.3 on RedHat 9. Oddly enough, none of these warnings
show up when I compile httpd-2.1.
Maybe this has something to do with the -std=c89 option. Any ideas?
Best,
Blair
--
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: gcc 3.3 warnings
Posted by Greg Stein <gs...@lyra.org>.
On Tue, Jun 17, 2003 at 12:23:37PM -0700, Blair Zajac wrote:
> Greg Stein wrote:
> >
> > I took Ryan's advice and changed the parameter to 'expected' in the Apache
> > httpd 2.0.x and 2.1.x branches. So the next httpd release should have it
> > cleared up.
> >
> > Cheers,
> > -g
>
> Great. Thank you.
>
> I knew sending email to svn would get better a better response than going
> to dev@httpd.apache.org.
Heh. For something like this, it probably would have gone in just as fast.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Discussion of external projects was Re: gcc 3.3 warnings
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Tuesday, June 17, 2003 3:29 PM -0700 Blair Zajac <bl...@orcaware.com>
wrote:
> Not image, just an individual's name recognition. It seems to me that
> if an individual is known, then it's easier to get stuff done. I'm more
> known on svn, so any issues I raise here get more of a response. I
> have raised issues on apr or httpd, and in my experience, raising them
> in svn gets the job done more quickly and easily.
No, but it is a matter that discussions about a project should be on that
project's mailing list. I really dislike it when people discuss changes about
project B on an project A's list. That does a tremendous disservice to the
developers on project B that aren't on project A's list.
As far as not receiving a response, for all of the patches that I can recall
on either dev@apr and dev@httpd, you never followed up to comments or reposted
them. That is pretty much a pre-req on some of the busier lists. -- justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: gcc 3.3 warnings
Posted by Blair Zajac <bl...@orcaware.com>.
Sander Striker wrote:
>
> > From: Blair Zajac [mailto:blair@orcaware.com]
> > Sent: Tuesday, June 17, 2003 9:24 PM
>
> > I knew sending email to svn would get better a better response than going
> > to dev@httpd.apache.org.
>
> 'scuse me? How is that? What is the image of us over in httpd land?
Not image, just an individual's name recognition. It seems to me that
if an individual is known, then it's easier to get stuff done. I'm more
known on svn, so any issues I raise here get more of a response. I
have raised issues on apr or httpd, and in my experience, raising them
in svn gets the job done more quickly and easily.
I'm not saying this is specific to httpd, but probably most busy open
source lists.
Best,
Blair
--
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
RE: gcc 3.3 warnings
Posted by Sander Striker <st...@apache.org>.
> From: Blair Zajac [mailto:blair@orcaware.com]
> Sent: Tuesday, June 17, 2003 9:24 PM
> I knew sending email to svn would get better a better response than going
> to dev@httpd.apache.org.
'scuse me? How is that? What is the image of us over in httpd land?
Sander
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: gcc 3.3 warnings
Posted by Blair Zajac <bl...@orcaware.com>.
Greg Stein wrote:
>
> I took Ryan's advice and changed the parameter to 'expected' in the Apache
> httpd 2.0.x and 2.1.x branches. So the next httpd release should have it
> cleared up.
>
> Cheers,
> -g
Great. Thank you.
I knew sending email to svn would get better a better response than going
to dev@httpd.apache.org.
Best,
Blair
--
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: gcc 3.3 warnings
Posted by Greg Stein <gs...@lyra.org>.
I took Ryan's advice and changed the parameter to 'expected' in the Apache
httpd 2.0.x and 2.1.x branches. So the next httpd release should have it
cleared up.
Cheers,
-g
On Mon, Jun 16, 2003 at 02:41:58PM -0700, rbb@rkbloom.net wrote:
>
> I took a quick look at httpd.h on line 1456, because imagine Apache
> needing exp. It is an argument to ap_strcmp_match. It would be
> incredibly painless to change that to expected.
>
> Ryan
>
> On Mon, 16 Jun 2003, Philip Martin wrote:
>
> > Blair Zajac <bl...@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
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: gcc 3.3 warnings
Posted by rb...@rkbloom.net.
I took a quick look at httpd.h on line 1456, because imagine Apache
needing exp. It is an argument to ap_strcmp_match. It would be
incredibly painless to change that to expected.
Ryan
On Mon, 16 Jun 2003, Philip Martin wrote:
> Blair Zajac <bl...@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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: gcc 3.3 warnings
Posted by Philip Martin <ph...@codematters.co.uk>.
Blair Zajac <bl...@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