From 1b971d43064579a0816d48459eab4b4ac96263d1 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 13 Aug 1992 23:25:49 +0000 Subject: [PATCH] (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 --- gcc/c-typeck.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 9297d488a52..33200b37300 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), -- 2.30.2