From 95a44a8aed37f5f8146b3fdced5718aa5e72f4ec Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 12 Dec 2013 18:27:17 -0600 Subject: [PATCH] Squelch warning from cc on OpenBSD that fd argument of usr_pipe() in slocal.c might get clobbered by vfork() by copying it to a volatile local. --- uip/slocal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uip/slocal.c b/uip/slocal.c index c944cd69..8daf6081 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1042,8 +1042,9 @@ usr_folder (int fd, char *string) */ static int -usr_pipe (int fd, char *cmd, char *pgm, char **vec, int suppress) +usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress) { + volatile int fd = fd_arg; pid_t child_id; int i, bytes, seconds, status; struct stat st; -- 2.56.0