------- Comment #1 from eugene dot zelenko at gmail dot com 2008-08-14 23:32 ------- I think unused variable warning should be expanded for all cases where variable used only as lvalue. As result some useless computations could be avoided.
Coverity Prevent warn about such situations with one of its checkers. But Coverity is too huge and slow tool, so GCC could definitely be better for such diagnostics. -- eugene dot zelenko at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugene dot zelenko at gmail | |dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36390