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

Re: svn commit: r33989

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Mon, 03 Nov 2008 14:48:11 -0500

"Neels J. Hofmeyr" <neels_at_elego.de> writes:
> Ah, thanks for finding this. I firmly remember to have made the change, but
> I must have forgotten to commit it. (And I kept ignoring the compiler
> warnings because it said "deprecated" in them. Wasn't reading properly.)
>
> Fixed in r34017.
>
> BTW, shouldn't the compiler bail out on this kind of error instead of just
> warning about it? It causes a function call with bogus parameters, that's
> real bad.

Yeah, you'd think so. The trouble is, to the compiler, it's just a
structure sub-pointer assignment -- the fact that the value at the
pointer is a function, that may eventually be called, is incidental.
Since pointers can in theory be cast, the most the compiler is willing
to do here is warn. (Maybe there's some setting to tell it to be
stricter about this, I don't know.)

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-03 20:48:31 CET

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.