* c-decl.c (grokfield): Remove local variable.
authorMarek Polacek <polacek@redhat.com>
Tue, 25 Jul 2017 12:06:12 +0000 (12:06 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 25 Jul 2017 12:06:12 +0000 (12:06 +0000)
From-SVN: r250513

gcc/c/ChangeLog
gcc/c/c-decl.c

index 4e4d20b..4ce5360 100644 (file)
@@ -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 { }.
index 50da185..12fbc18 100644 (file)
@@ -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))