Date: Fri, 17 Oct 2025 22:58:26 GMT From: Ryan Libby <rlibby@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5bd3ce4ef629 - main - achiem: quiet gcc -Warray-bounds Message-ID: <202510172258.59HMwQ6l048178@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=5bd3ce4ef629d2ffd57b4b58a7e7d56cb0e171a8 commit 5bd3ce4ef629d2ffd57b4b58a7e7d56cb0e171a8 Author: Ryan Libby <rlibby@FreeBSD.org> AuthorDate: 2025-10-17 22:43:06 +0000 Commit: Ryan Libby <rlibby@FreeBSD.org> CommitDate: 2025-10-17 22:43:06 +0000 achiem: quiet gcc -Warray-bounds gcc complains about accessing the byte as ads->common.bytes[3] as that field is declared as being one byte. Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D53152 --- sys/dev/ahci/ahciem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ahci/ahciem.c b/sys/dev/ahci/ahciem.c index c9e6c35f4233..012796aa5d6f 100644 --- a/sys/dev/ahci/ahciem.c +++ b/sys/dev/ahci/ahciem.c @@ -479,7 +479,7 @@ ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) else ads->common.bytes[0] |= SES_OBJSTAT_NOTINSTALLED; if (ch->disablephy) - ads->common.bytes[3] |= SESCTL_DEVOFF; + ads->bytes[2] |= SESCTL_DEVOFF; ahci_putch(ch); } ccb->ccb_h.status = CAM_REQ_CMP;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510172258.59HMwQ6l048178>
