This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]