From edafaf047b13a0defdfbca55b7517a52a33bdda5 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Mon, 21 Jul 2014 14:13:39 -0400 Subject: [PATCH] FBSD: initialize 'retval' for afs3_syscall In the same way as linux_ret. An ugly hack, but retval is not really used for anything relevant at the moment, and the compiler will warn about it being used uninitialized otherwise. Change-Id: Ia31ea6668ac3bc2edbec143d0b839f3e797ff424 Reviewed-on: http://gerrit.openafs.org/11372 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Jeffrey Altman --- src/afs/afs_syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_syscall.c b/src/afs/afs_syscall.c index bf480d1c9..b2b644ae1 100644 --- a/src/afs/afs_syscall.c +++ b/src/afs/afs_syscall.c @@ -476,7 +476,8 @@ afs3_syscall(struct thread *p, void *args) long parm5; long parm6; } *uap = (struct a *)args; - long *retval; + long fbsd_ret = 0; + long *retval = &fbsd_ret; #elif defined(AFS_NBSD40_ENV) int afs3_syscall(struct lwp *p, const void *args, register_t *retval) -- 2.39.5