Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Since trap_kdebug() may be a macro, be su...



details:   https://anonhg.NetBSD.org/src/rev/c22f1a7f66fe
branches:  trunk
changeset: 535460:c22f1a7f66fe
user:      fredette <fredette%NetBSD.org@localhost>
date:      Mon Aug 19 15:07:33 2002 +0000

description:
Since trap_kdebug() may be a macro, be sure to cast to void when not
using its result.

diffstat:

 sys/arch/hppa/hppa/trap.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e7bc8341d958 -r c22f1a7f66fe sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Mon Aug 19 15:01:34 2002 +0000
+++ b/sys/arch/hppa/hppa/trap.c Mon Aug 19 15:07:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.3 2002/07/07 22:52:54 fredette Exp $        */
+/*     $NetBSD: trap.c,v 1.4 2002/08/19 15:07:33 fredette Exp $        */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -451,7 +451,7 @@
        }
 #undef SANITY
        if (sanity_frame == tf) {
-               trap_kdebug(T_IBREAK, 0, tf);
+               (void) trap_kdebug(T_IBREAK, 0, tf);
                sanity_frame = NULL;
                sanity_proc = NULL;
                sanity_checked = 0;



Home | Main Index | Thread Index | Old Index