> Absolutely true.
> But I got a subtle compiler message about a very very simple and short 
> piece of code.

how is the compiler supposed to determine if the code in question
is short and simple?

> > in your case, you can either provide a dummy assignment
> > or use SET(var) to inform 8c that it can forget about that
> > warning.
> >   
> I didn't know SET(var) so I used a dummy assignment, as you can see in 
> my original mail.
> Both seems to me a medicine worst than the disease. Personal opinion, of 
> course.

on the other hand, if you've been following along at home
with linux development, you'll remember that a week or so
ago a really smart compiler screwed everybody over by optimizing
away a test for null because clearly that couldn't happen.

http://lwn.net/Articles/342330/
http://lwn.net/Articles/342420/

(this problem is also demonstrates one reason mixing
asignments and declarations is bad practice.)

- erik

Reply via email to