[C PATCH] Warn about unused RHS of COMPOUND_EXPR (PR c/59871)

Joseph S. Myers joseph@codesourcery.com
Thu Jan 23 17:53:00 GMT 2014


On Wed, 22 Jan 2014, Marek Polacek wrote:

> 2014-01-22  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c/59871
> c/
> 	* c-typeck.c (build_compound_expr): Warn even for right-hand operand
> 	of a comma expression.
> 	(emit_side_effect_warnings): Likewise.
> libdecnumber/
> 	* decNumberLocal.h (UBFROMUS, UBFROMUI): Remove last argument.
> testsuite/
> 	* gcc.dg/20020220-2.c: Adjust dg-warning message.
> 	* gcc.dg/pr59871.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list