From: Ben Kaduk Date: Mon, 21 Jul 2014 18:13:39 +0000 (-0400) Subject: FBSD: initialize 'retval' for afs3_syscall X-Git-Tag: upstream/1.8.0_pre1^2~615 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=edafaf047b13a0defdfbca55b7517a52a33bdda5;p=packages%2Fo%2Fopenafs.git 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 --- 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)