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

Re: static const int variable needs init value

From: Max Okumoto <okumoto_at_ucsd.edu>
Date: 2001-12-05 18:10:56 CET

I am currently just fixing the warnings generated
by the solaris compiler, as a way to get familiar
with the code. So I think that its value is zero
and will always be zero since its const, but the
compiler complained so I fixed it. :-)

                        Max Okumoto

Matt Kraai <kraai@alumni.carnegiemellon.edu> writes:

> On Wed, Dec 05, 2001 at 02:19:38AM -0800, Max Okumoto wrote:
> > * subversion/subversion/libsvn_ra_dav/commit.c
> > static const int variable needs init value even if it is zero.
>
> Why? Aren't non-automatic variables zeroed by default?
>
> Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:51 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.