[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>
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)
| 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.
Main Index |
Thread Index |