From: Richard Stallman Date: Thu, 13 Aug 1992 23:25:49 +0000 (+0000) Subject: (build_component_ref): Don't warn for compound and conditional expressions when pedantic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b971d43064579a0816d48459eab4b4ac96263d1;p=gcc.git (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 --- 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),