Suggested by Minsoo Choo in
<https://lists.gnu.org/archive/html/bug-gnulib/2022-11/msg00114.html>.
* lib/spawni.c: Ignore -Wdeprecated-declarations warnings.
+2022-11-20 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn-internal: Avoid warning on macOS.
+ Suggested by Minsoo Choo in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2022-11/msg00114.html>.
+ * lib/spawni.c: Ignore -Wdeprecated-declarations warnings.
+
2022-11-20 Bruno Haible <bruno@clisp.org>
posix_spawn tests: Fix compilation error (regression 2022-09-14).
#else
+/* The warning "warning: 'vfork' is deprecated: Use posix_spawn or fork" seen
+ on macOS 12 is pointless, as we use vfork only when it is safe or when the
+ user has explicitly requested it. Silence this warning. */
+#if __GNUC__ >= 3
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
/* Spawn a new process executing PATH with the attributes describes in *ATTRP.
Before running the process perform the actions described in FILE-ACTIONS. */
int