Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Amend #ifdef with DIAGNOSTIC case, avoids g...



details:   https://anonhg.NetBSD.org/src/rev/1d766675926b
branches:  trunk
changeset: 749264:1d766675926b
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Nov 23 18:20:46 2009 +0000

description:
Amend #ifdef with DIAGNOSTIC case, avoids gcc warning about unused var.

diffstat:

 sys/arch/arm/arm/ast.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8ef2f873d843 -r 1d766675926b sys/arch/arm/arm/ast.c
--- a/sys/arch/arm/arm/ast.c    Mon Nov 23 17:16:50 2009 +0000
+++ b/sys/arch/arm/arm/ast.c    Mon Nov 23 18:20:46 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ast.c,v 1.18 2009/11/21 20:32:17 rmind Exp $   */
+/*     $NetBSD: ast.c,v 1.19 2009/11/23 18:20:46 rmind Exp $   */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.18 2009/11/21 20:32:17 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.19 2009/11/23 18:20:46 rmind Exp $");
 
 #include "opt_ddb.h"
 
@@ -76,7 +76,7 @@
        /* Invoke MI userret code */
        mi_userret(l);
 
-#ifdef __PROG32
+#if defined(__PROG32) && defined(DIAGNOSTIC)
        {
                struct pcb *pcb = lwp_getpcb(l);
                KASSERT((pcb->pcb_tf->tf_spsr & IF32_bits) == 0);



Home | Main Index | Thread Index | Old Index