diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-25 12:06:12 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-07-25 12:06:12 +0000 |
commit | abec41347e464fd7f4dc247a04dc7bbf56cc5f82 (patch) | |
tree | b1897b4152a23c658871ab5e063023477cf83d80 | |
parent | 37f62c42bf3932f4c7c830921e64646893a5be7e (diff) | |
download | gcc-abec41347e464fd7f4dc247a04dc7bbf56cc5f82.tar.gz |
* c-decl.c (grokfield): Remove local variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250513 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/c/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 4e4d20bbe20..4ce5360c0c1 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,5 +1,9 @@ 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 * c-parser.c (c_parser_else_body): Don't warn about multistatement macro expansion if the body is in { }. diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 50da185e363..12fbc18bb94 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -7559,10 +7559,9 @@ grokfield (location_t loc, that took root before someone noticed the bug... */ tree type = declspecs->type; - bool type_ok = RECORD_OR_UNION_TYPE_P (type); bool ok = false; - if (type_ok + if (RECORD_OR_UNION_TYPE_P (type) && (flag_ms_extensions || flag_plan9_extensions || !declspecs->typedef_p)) |