https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65041
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the setting of fd to -1 is removed which is why there is no warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65041
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the setting of fd to -1 is removed which is why there is no warning.