aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c/ChangeLog4
-rw-r--r--gcc/c/c-decl.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 4e4d20b..4ce5360 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 50da185..12fbc18 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))