diff options
Diffstat (limited to 'lib/freopen-safer.c')
-rw-r--r-- | lib/freopen-safer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/freopen-safer.c b/lib/freopen-safer.c index f41f58b94b..886e3e83a7 100644 --- a/lib/freopen-safer.c +++ b/lib/freopen-safer.c @@ -27,6 +27,11 @@ #include <fcntl.h> #include <unistd.h> +/* GCC 13 misunderstands the dup2 trickery in this file. */ +#if 13 <= __GNUC__ +# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak" +#endif + /* Guarantee that FD is open; all smaller FDs must already be open. Return true if successful. */ static bool |