On Thu, 7 Jun 2018, Marek Polacek wrote:

> This PR reports that we are not emitting a -Wc90-c99-compat warning
> for a for loop with a declaration.  This patch adds it; here we want
> to use pedwarn_c90 which takes care of it.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

OK.  (This wasn't present originally because actually using this construct 
in C90 mode produces a hard error as it's problematic without the C99 
block scopes - that is, this pedwarn_c90 is needed only for 
-Wc90-c99-compat, not for conformance in C90 mode.)

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to