* lib/freopen-safer.c: Ignore -Wanalyzer-fd-leak.
+2023-04-26 Paul Eggert <eggert@cs.ucla.edu>
+
+ freopen-safer: pacify GCC 13
+ * lib/freopen-safer.c: Ignore -Wanalyzer-fd-leak.
+
2023-04-26 Bruno Haible <bruno@clisp.org>
fdopendir: Fix fd leak and test failure on native Windows.
#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