From: Richard Stallman Date: Thu, 26 Nov 1992 22:40:09 +0000 (+0000) Subject: (build_unary_op): Call pedantic_lvalue_warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee71df465a068e0a22f346e2c8ee7bd6e3e96624;p=gcc.git (build_unary_op): Call pedantic_lvalue_warning for *all* cases of incrementing a cast. From-SVN: r2811 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 1739805e96b..dfde12e5513 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -3011,6 +3011,7 @@ build_unary_op (code, xarg, noconvert) case FIX_FLOOR_EXPR: case FIX_ROUND_EXPR: case FIX_CEIL_EXPR: + pedantic_lvalue_warning (CONVERT_EXPR); /* If the real type has the same machine representation as the type it is cast to, we can make better output by adding directly to the inside of the cast. */ @@ -3022,7 +3023,6 @@ build_unary_op (code, xarg, noconvert) else { tree incremented, modify, value; - pedantic_lvalue_warning (CONVERT_EXPR); arg = stabilize_reference (arg); if (code == PREINCREMENT_EXPR || code == PREDECREMENT_EXPR) value = arg;