"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