Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Mark diagnostic-only variables



details:   https://anonhg.NetBSD.org/src/rev/9fd1a9ce0e9a
branches:  trunk
changeset: 790871:9fd1a9ce0e9a
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 16:08:18 2013 +0000

description:
Mark diagnostic-only variables

diffstat:

 sys/kern/subr_autoconf.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 007bb6ea11ef -r 9fd1a9ce0e9a sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Fri Oct 25 16:01:56 2013 +0000
+++ b/sys/kern/subr_autoconf.c  Fri Oct 25 16:08:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.228 2013/10/12 16:49:01 christos Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.229 2013/10/25 16:08:18 martin Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.228 2013/10/12 16:49:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.229 2013/10/25 16:08:18 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -241,7 +241,7 @@
 {
        void (*pr)(const char *, ...) __printflike(1, 2) =
            dopanic ? panic : printf;
-       int i, error = 0, e2;
+       int i, error = 0, e2 __diagused;
 
        for (i = 0; cfdriverv[i] != NULL; i++) {
                if ((error = drv_do(cfdriverv[i])) != 0) {
@@ -273,7 +273,7 @@
        const struct cfattachinit *cfai = NULL;
        void (*pr)(const char *, ...) __printflike(1, 2) =
            dopanic ? panic : printf;
-       int j = 0, error = 0, e2;
+       int j = 0, error = 0, e2 __diagused;
 
        for (cfai = &cfattachv[0]; cfai->cfai_name != NULL; cfai++) {
                for (j = 0; cfai->cfai_list[j] != NULL; j++) {



Home | Main Index | Thread Index | Old Index