Module Name:    src
Committed By:   martin
Date:           Fri Oct 25 16:08:18 UTC 2013

Modified Files:
        src/sys/kern: subr_autoconf.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.228 -r1.229 src/sys/kern/subr_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.228 src/sys/kern/subr_autoconf.c:1.229
--- src/sys/kern/subr_autoconf.c:1.228	Sat Oct 12 16:49:01 2013
+++ src/sys/kern/subr_autoconf.c	Fri Oct 25 16:08:18 2013
@@ -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 @@ frob_cfdrivervec(struct cfdriver * const
 {
 	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 @@ frob_cfattachvec(const struct cfattachin
 	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++) {

Reply via email to