From 11b027d7e22fcd76566716f40c20cff0784b076a Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 18 Mar 2025 13:40:19 -0500 Subject: [PATCH] piped_process: silence spurious -Wmaybe-uninitialized warnings libguile/posix.c: initialize pipes to silence spurious warnings. --- libguile/posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libguile/posix.c b/libguile/posix.c index dde77b8ee..7cd80ed76 100644 --- a/libguile/posix.c +++ b/libguile/posix.c @@ -1523,8 +1523,8 @@ piped_process (pid_t *pid, SCM prog, SCM args, SCM from, SCM to) #define FUNC_NAME "piped-process" { int reading, writing; - int c2p[2]; /* Child to parent. */ - int p2c[2]; /* Parent to child. */ + int c2p[2] = {0, 0}; /* Child to parent. */ + int p2c[2] = {0, 0}; /* Parent to child. */ int in = -1, out = -1, err = -1; char *exec_file; char **exec_argv;