[Bug c/85318] -Wc90-c99-compat does not warn about for loop initial declarations
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 02:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85318
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, easyhack
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-04-11
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
This should not be hard to add.
The error message while compiling for C90 is emitted from check_for_loop_decls
which should be easy to add a warning there when -Wc90-c99-compat is turned on.
More information about the Gcc-bugs
mailing list