diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-26 22:40:09 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-26 22:40:09 +0000 |
commit | ee71df465a068e0a22f346e2c8ee7bd6e3e96624 (patch) | |
tree | 4af2beb0f7e7f7afc1f54ad991dc7df49c947ab5 | |
parent | acc15f572dd8b6f5c94198b3e602ce9cd86bc77d (diff) | |
download | gcc-ee71df465a068e0a22f346e2c8ee7bd6e3e96624.zip gcc-ee71df465a068e0a22f346e2c8ee7bd6e3e96624.tar.gz gcc-ee71df465a068e0a22f346e2c8ee7bd6e3e96624.tar.bz2 |
(build_unary_op): Call pedantic_lvalue_warning
for *all* cases of incrementing a cast.
From-SVN: r2811
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 1739805..dfde12e 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; |