Re: C PATCH for c/85318, missing -Wc90-c99-compat warning with for-init-loop

2018-06-07 Thread Joseph Myers
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

C PATCH for c/85318, missing -Wc90-c99-compat warning with for-init-loop

2018-06-07 Thread Marek Polacek
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? 2018-06-07 Marek Polacek PR c/85318 * c-dec