Mark diagnostic-only variables
This commit is contained in:
parent
b083a17f72
commit
f6552d7c17
|
@ -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 *cfdriverv,
|
|||
{
|
||||
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 cfattachinit *cfattachv,
|
|||
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++) {
|
||||
|
|
Loading…
Reference in New Issue