* tests/test-execute-child.c: Silence warning about sprintf.
* tests/test-fstatat.c: Silence warnings about statat and lstatat.
* tests/test-statat.c: Add comment.
+2024-11-20 Bruno Haible <bruno@clisp.org>
+
+ tests: Silence some more -Wdeprecated-declarations warnings.
+ * tests/test-execute-child.c: Silence warning about sprintf.
+ * tests/test-fstatat.c: Silence warnings about statat and lstatat.
+ * tests/test-statat.c: Add comment.
+
2024-11-19 Paul Eggert <eggert@cs.ucla.edu>
savewd: remove O_SEARCH optimization
#undef strstr
#undef write
+/* macOS 12's "warning: 'sprintf' is deprecated" is pointless,
+ as sprintf is used safely here. */
+#if defined __APPLE__ && defined __MACH__ && _GL_GNUC_PREREQ (4, 2)
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
#include "qemu.h"
#if HAVE_MSVC_INVALID_PARAMETER_HANDLER
#include "ignore-value.h"
#include "macros.h"
+/* This program tests deprecated functions 'statat' and 'lstatat'. */
+#if _GL_GNUC_PREREQ (4, 3)
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
#ifndef BASE
# define BASE "test-fstatat.t"
#endif
#include "openat.h"
+/* This program tests deprecated functions 'statat' and 'lstatat'. */
#if _GL_GNUC_PREREQ (4, 3)
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif