aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2017-07-25 12:06:12 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2017-07-25 12:06:12 +0000
commit8595f67be2d1f44102a345f21d28b4836ad47349 (patch)
treeb1897b4152a23c658871ab5e063023477cf83d80
parentedf8ba4bba1be9b8ccad3be21896e7ee81cd788d (diff)
downloadgcc-8595f67be2d1f44102a345f21d28b4836ad47349.zip
gcc-8595f67be2d1f44102a345f21d28b4836ad47349.tar.gz
gcc-8595f67be2d1f44102a345f21d28b4836ad47349.tar.bz2
* c-decl.c (grokfield): Remove local variable.
From-SVN: r250513
-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))