https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114952
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note I don't think this is a `False positive` exactly because GCC has no knowledge that errno could be non-zero after a fail call to open.