Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Add an __unused__ attribute to n_support ...



details:   https://anonhg.NetBSD.org/src/rev/b358f189d94a
branches:  trunk
changeset: 532118:b358f189d94a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 31 17:46:51 2002 +0000

description:
Add an __unused__ attribute to n_support and n_lower, since they are
unused if a kernel supports all CPU families.

diffstat:

 sys/arch/i386/i386/machdep.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r f980ed8d66cf -r b358f189d94a sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Fri May 31 17:36:29 2002 +0000
+++ b/sys/arch/i386/i386/machdep.c      Fri May 31 17:46:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.471 2002/05/12 23:16:53 matt Exp $       */
+/*     $NetBSD: machdep.c,v 1.472 2002/05/31 17:46:51 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.471 2002/05/12 23:16:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.472 2002/05/31 17:46:51 thorpej Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -1605,9 +1605,10 @@
                cai->cai_associativity = 0;     /* XXX Unknown/reserved */
 }
 
-static const char n_support[] =
+static const char n_support[] __attribute__((__unused__)) =
     "NOTICE: this kernel does not support %s CPU class\n";
-static const char n_lower[] = "NOTICE: lowering CPU class to %s\n";
+static const char n_lower[] __attribute__((__unused__)) =
+    "NOTICE: lowering CPU class to %s\n";
 
 void
 identifycpu(struct cpu_info *ci)



Home | Main Index | Thread Index | Old Index