Commit 8595f67b by Marek Polacek Committed by Marek Polacek

* c-decl.c (grokfield): Remove local variable.

From-SVN: r250513
parent edf8ba4b
2017-07-25 Marek Polacek <polacek@redhat.com> 2017-07-25 Marek Polacek <polacek@redhat.com>
* c-decl.c (grokfield): Remove local variable.
2017-07-25 Marek Polacek <polacek@redhat.com>
PR c/81364 PR c/81364
* c-parser.c (c_parser_else_body): Don't warn about multistatement * c-parser.c (c_parser_else_body): Don't warn about multistatement
macro expansion if the body is in { }. macro expansion if the body is in { }.
......
...@@ -7559,10 +7559,9 @@ grokfield (location_t loc, ...@@ -7559,10 +7559,9 @@ grokfield (location_t loc,
that took root before someone noticed the bug... */ that took root before someone noticed the bug... */
tree type = declspecs->type; tree type = declspecs->type;
bool type_ok = RECORD_OR_UNION_TYPE_P (type);
bool ok = false; bool ok = false;
if (type_ok if (RECORD_OR_UNION_TYPE_P (type)
&& (flag_ms_extensions && (flag_ms_extensions
|| flag_plan9_extensions || flag_plan9_extensions
|| !declspecs->typedef_p)) || !declspecs->typedef_p))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment