Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/tc make egcs happy: ioasic.c:327: warning: su...



details:   https://anonhg.NetBSD.org/src/rev/001f13aaae60
branches:  trunk
changeset: 486806:001f13aaae60
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 29 02:16:57 2000 +0000

description:
make egcs happy: ioasic.c:327: warning: suggest parentheses
around arithmetic in operand of |

diffstat:

 sys/arch/alpha/tc/ioasic.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bb8e085a21b1 -r 001f13aaae60 sys/arch/alpha/tc/ioasic.c
--- a/sys/arch/alpha/tc/ioasic.c        Mon May 29 01:43:04 2000 +0000
+++ b/sys/arch/alpha/tc/ioasic.c        Mon May 29 02:16:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioasic.c,v 1.30 2000/05/28 06:07:31 gmcgarry Exp $ */
+/* $NetBSD: ioasic.c,v 1.31 2000/05/29 02:16:57 matt Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: ioasic.c,v 1.30 2000/05/28 06:07:31 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioasic.c,v 1.31 2000/05/29 02:16:57 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -315,7 +315,7 @@
 
                /* XXX DUPLICATION OF INTERRUPT BIT INFORMATION... */
 #define        CHECKINTR(slot, bits)                                           \
-               if (sir & bits) {                                       \
+               if (sir & (bits)) {                                     \
                        ifound = 1;                                     \
                        INCRINTRCNT(slot);                              \
                        (*ioasicintrs[slot].iai_func)                   \



Home | Main Index | Thread Index | Old Index