This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Warn about unused RHS of COMPOUND_EXPR (PR c/59871)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Jan 2014 17:52:55 +0000
- Subject: Re: [C PATCH] Warn about unused RHS of COMPOUND_EXPR (PR c/59871)
- Authentication-results: sourceware.org; auth=none
- References: <20140121183810 dot GM8907 at redhat dot com> <20140121185013 dot GP892 at tucnak dot redhat dot com> <20140121223058 dot GR8907 at redhat dot com> <20140121223442 dot GS892 at tucnak dot redhat dot com> <20140121225403 dot GS8907 at redhat dot com> <20140121231500 dot GT892 at tucnak dot redhat dot com> <20140122100809 dot GT8907 at redhat dot com>
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