diff options
author | Richard Stallman <rms@gnu.org> | 1992-08-13 23:25:49 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-08-13 23:25:49 +0000 |
commit | 1b971d43064579a0816d48459eab4b4ac96263d1 (patch) | |
tree | 6d5dc7a1cbae0dc00f3deb9f6fedaf716c3ae9fa /gcc | |
parent | 4491de59e23360b4984a0e0ee57eccd0facfe0ab (diff) | |
download | gcc-1b971d43064579a0816d48459eab4b4ac96263d1.zip gcc-1b971d43064579a0816d48459eab4b4ac96263d1.tar.gz gcc-1b971d43064579a0816d48459eab4b4ac96263d1.tar.bz2 |
(build_component_ref): Don't warn for compound and conditional expressions when pedantic.
(build_component_ref): Don't warn for compound and
conditional expressions when pedantic. These are valid in ANSI C.
From-SVN: r1819
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 9297d48..33200b3 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -999,12 +999,10 @@ build_component_ref (datum, component) case COMPOUND_EXPR: { tree value = build_component_ref (TREE_OPERAND (datum, 1), component); - pedantic_lvalue_warning (COMPOUND_EXPR); return build (COMPOUND_EXPR, TREE_TYPE (value), TREE_OPERAND (datum, 0), value); } case COND_EXPR: - pedantic_lvalue_warning (COND_EXPR); return build_conditional_expr (TREE_OPERAND (datum, 0), build_component_ref (TREE_OPERAND (datum, 1), component), |