Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Mark a diagnostic-only variable
details: https://anonhg.NetBSD.org/src/rev/17666cbfde35
branches: trunk
changeset: 790873:17666cbfde35
user: martin <martin%NetBSD.org@localhost>
date: Fri Oct 25 16:23:46 2013 +0000
description:
Mark a diagnostic-only variable
diffstat:
sys/arch/vax/vax/trap.c | 6 +++---
sys/kern/sys_aio.c | 6 +++---
sys/netinet/tcp_congctl.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r b24e1c7cbaec -r 17666cbfde35 sys/arch/vax/vax/trap.c
--- a/sys/arch/vax/vax/trap.c Fri Oct 25 16:09:29 2013 +0000
+++ b/sys/arch/vax/vax/trap.c Fri Oct 25 16:23:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.131 2012/08/02 14:03:22 matt Exp $ */
+/* $NetBSD: trap.c,v 1.132 2013/10/25 16:30:52 martin Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -33,7 +33,7 @@
/* All bugs are subject to removal without further notice */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.131 2012/08/02 14:03:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.132 2013/10/25 16:30:52 martin Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -385,7 +385,7 @@
{
ucontext_t * const uc = arg;
lwp_t * const l = curlwp;
- int error;
+ int error __diagused;
error = cpu_setmcontext(l, &uc->uc_mcontext, uc->uc_flags);
KASSERT(error == 0);
diff -r b24e1c7cbaec -r 17666cbfde35 sys/kern/sys_aio.c
--- a/sys/kern/sys_aio.c Fri Oct 25 16:09:29 2013 +0000
+++ b/sys/kern/sys_aio.c Fri Oct 25 16:23:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_aio.c,v 1.37 2011/02/17 19:02:50 matt Exp $ */
+/* $NetBSD: sys_aio.c,v 1.38 2013/10/25 16:23:46 martin Exp $ */
/*
* Copyright (c) 2007 Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.37 2011/02/17 19:02:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.38 2013/10/25 16:23:46 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -280,7 +280,7 @@
struct aio_job *a_job;
struct lio_req *lio;
sigset_t oss, nss;
- int error, refcnt;
+ int error __diagused, refcnt;
/*
* Make an empty signal mask, so it
diff -r b24e1c7cbaec -r 17666cbfde35 sys/netinet/tcp_congctl.c
--- a/sys/netinet/tcp_congctl.c Fri Oct 25 16:09:29 2013 +0000
+++ b/sys/netinet/tcp_congctl.c Fri Oct 25 16:23:46 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_congctl.c,v 1.16 2011/04/08 11:15:11 yamt Exp $ */
+/* $NetBSD: tcp_congctl.c,v 1.17 2013/10/25 16:29:20 martin Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2001, 2005, 2006 The NetBSD Foundation, Inc.
@@ -135,7 +135,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_congctl.c,v 1.16 2011/04/08 11:15:11 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_congctl.c,v 1.17 2013/10/25 16:29:20 martin Exp $");
#include "opt_inet.h"
#include "opt_tcp_debug.h"
@@ -232,7 +232,7 @@
void
tcp_congctl_init(void)
{
- int r;
+ int r __diagused;
mutex_init(&tcp_congctl_mtx, MUTEX_DEFAULT, IPL_NONE);
Home |
Main Index |
Thread Index |
Old Index