On 12/16/2015 07:58 AM, Marek Polacek wrote:
The following improves the location for "statement with no effect" warning by using the location of the expression if available. Can't use EXPR_LOCATION as *_DECLs still don't carry a location.Bootstrapped/regtested on x86_64-linux, ok for trunk? 2015-12-16 Marek Polacek <pola...@redhat.com> PR c/64637 * c-typeck.c (c_process_expr_stmt): Use location of the expression if available. * gcc.dg/pr64637.c: New test.
OK. jeff