Mark a variable diagnostic-only, from John D. Baker.
This commit is contained in:
parent
4e760575d6
commit
2ed142f223
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: trap.c,v 1.271 2014/02/12 23:24:09 dsl Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.272 2014/03/12 18:59:07 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
@ -68,7 +68,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.271 2014/02/12 23:24:09 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.272 2014/03/12 18:59:07 martin Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -747,7 +747,7 @@ startlwp(void *arg)
|
||||
{
|
||||
ucontext_t *uc = arg;
|
||||
lwp_t *l = curlwp;
|
||||
int error;
|
||||
int error __diagused;
|
||||
|
||||
error = cpu_setmcontext(l, &uc->uc_mcontext, uc->uc_flags);
|
||||
KASSERT(error == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user