NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-luna68k/52680: src/sys/arch/luna68k/stand/boot/sc.c:411]: (warning) Redundant assignment
The following reply was made to PR port-luna68k/52680; it has been noted by GNATS.
From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-luna68k/52680: src/sys/arch/luna68k/stand/boot/sc.c:411]: (warning) Redundant assignment
Date: Tue, 31 Oct 2017 20:11:08 +0700
Date: Tue, 31 Oct 2017 11:45:00 +0000 (UTC)
From: dcb314%hotmail.com@localhost
Message-ID: <20171031114500.37C017A1C4%mollari.NetBSD.org@localhost>
| if (hd->scsi_ints != 0)
| hd->scsi_ints = hd->scsi_ints;
The compiler is broken (issuing misleading warnings.)
scsi_ints is a volatile field (a device register) - assigning it t
itself is an entirely reasonable thing to do.
How to make gcc (I presume) shut up about it, I will leave for someone else.
kre
Home |
Main Index |
Thread Index |
Old Index