[C/C++ PATCH] -Wunused-but-set-variable fixes (PR c++/44361)

Joseph S. Myers joseph@codesourcery.com
Sat Jun 5 12:36:00 GMT 2010


On Tue, 1 Jun 2010, Jakub Jelinek wrote:

> Hi!
> 
> The C++ hunk fixes a problem Richard reported in --enable-build-with-cxx
> - explicit (void) cast of an assignment expression didn't make LHS of it
> marked as read.
> 
> The C hunks is just something I've discovered while writing the testcase,
> statement expressions with an assignment or compound expression in its last
> statement weren't properly marked.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

The C changes are OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list