------- Comment #5 from sigra at home dot se  2006-01-18 16:25 -------
(In reply to comment #3)
> I still don't understand what this warning is useful for?  
> 
> const does nothing when it comes to local variables except for not letting
> you touch it in other expressions.  It does nothing for optimizations or
> anything else.

That is what const does for local variables. It is useful for preventing
unintended modifications which can cause bugs. That is why the feature exists
at all.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25845

Reply via email to