projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4491de5
)
(build_component_ref): Don't warn for compound and conditional expressions when pedantic.
author
Richard Stallman
<rms@gnu.org>
Thu, 13 Aug 1992 23:25:49 +0000
(23:25 +0000)
committer
Richard Stallman
<rms@gnu.org>
Thu, 13 Aug 1992 23:25:49 +0000
(23:25 +0000)
(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
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 9297d488a52e909db2b78e464ab3fed9c7308a2d..33200b37300b4d64513584b04bcf09461f6d433d 100644
(file)
--- 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),