From: Marek Polacek Date: Tue, 25 Jul 2017 12:06:12 +0000 (+0000) Subject: * c-decl.c (grokfield): Remove local variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8595f67be2d1f44102a345f21d28b4836ad47349;p=gcc.git * c-decl.c (grokfield): Remove local variable. From-SVN: r250513 --- diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 4e4d20bbe20..4ce5360c0c1 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,7 @@ +2017-07-25 Marek Polacek + + * c-decl.c (grokfield): Remove local variable. + 2017-07-25 Marek Polacek PR c/81364 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))