Fix unused variable warning for the non-FPU/altivec case.

This commit is contained in:
simonb 2007-11-06 02:52:53 +00:00
parent ad18d2e41e
commit 3e1f18ae93
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: userret.h,v 1.14 2007/11/05 20:37:48 ad Exp $ */ /* $NetBSD: userret.h,v 1.15 2007/11/06 02:52:53 simonb Exp $ */
/* /*
* Copyright (C) 1995, 1996 Wolfgang Solfrank. * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -44,7 +44,9 @@
static __inline void static __inline void
userret(struct lwp *l, struct trapframe *frame) userret(struct lwp *l, struct trapframe *frame)
{ {
#if defined(PPC_HAVE_FPU) || defined(ALTIVEC)
struct cpu_info * const ci = curcpu(); struct cpu_info * const ci = curcpu();
#endif
#ifdef PPC_HAVE_FPU #ifdef PPC_HAVE_FPU
struct pcb * const pcb = &l->l_addr->u_pcb; struct pcb * const pcb = &l->l_addr->u_pcb;
#endif #endif