From 75124a8b13768f1c1fb916f34e3997404e65d082 Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Sun, 18 Jul 1993 20:56:17 +0000 Subject: [PATCH] Added volatile void to cpu_exit() in the hope that it would stop warning about returning from gcc. It hasn't but the declaration is still correct. --- sys/amd64/amd64/vm_machdep.c | 4 +++- sys/i386/i386/vm_machdep.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index 27ef912e8519..d675ed5a84a8 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -49,7 +49,7 @@ /* * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ */ -static char rcsid[] = "$Header: /usr/bill/working/sys/i386/i386/RCS/vm_machdep.c,v 1.2 92/01/21 14:22:17 william Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/i386/vm_machdep.c,v 1.1.1.1 1993/06/12 14:58:05 rgrimes Exp $"; #include "param.h" #include "systm.h" @@ -139,6 +139,7 @@ cpu_fork(p1, p2) * a special case]. */ struct proc *swtch_to_inactive(); +volatile void cpu_exit(p) register struct proc *p; { @@ -161,6 +162,7 @@ cpu_exit(p) /* NOTREACHED */ } #else +volatile void cpu_exit(p) register struct proc *p; { diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 27ef912e8519..d675ed5a84a8 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -49,7 +49,7 @@ /* * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ */ -static char rcsid[] = "$Header: /usr/bill/working/sys/i386/i386/RCS/vm_machdep.c,v 1.2 92/01/21 14:22:17 william Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/i386/vm_machdep.c,v 1.1.1.1 1993/06/12 14:58:05 rgrimes Exp $"; #include "param.h" #include "systm.h" @@ -139,6 +139,7 @@ cpu_fork(p1, p2) * a special case]. */ struct proc *swtch_to_inactive(); +volatile void cpu_exit(p) register struct proc *p; { @@ -161,6 +162,7 @@ cpu_exit(p) /* NOTREACHED */ } #else +volatile void cpu_exit(p) register struct proc *p; {