git: b25ddb782fd7 - main - virtio: Use __diagused for variables only used in KASSERT().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:09 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b25ddb782fd75b262b652fdcea9f8af90669e003 commit b25ddb782fd75b262b652fdcea9f8af90669e003 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-13 23:08:19 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-13 23:08:19 +0000 virtio: Use __diagused for variables only used in KASSERT(). --- sys/dev/virtio/balloon/virtio_balloon.c | 2 +- sys/dev/virtio/scsi/virtio_scsi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/virtio/balloon/virtio_balloon.c b/sys/dev/virtio/balloon/virtio_balloon.c index bf4e5cf916f7..966a715f7989 100644 --- a/sys/dev/virtio/balloon/virtio_balloon.c +++ b/sys/dev/virtio/balloon/virtio_balloon.c @@ -413,7 +413,7 @@ vtballoon_send_page_frames(struct vtballoon_softc *sc, struct virtqueue *vq, struct sglist sg; struct sglist_seg segs[1]; void *c; - int error; + int error __diagused; sglist_init(&sg, 1, segs); diff --git a/sys/dev/virtio/scsi/virtio_scsi.c b/sys/dev/virtio/scsi/virtio_scsi.c index adf4fd17fc5b..d152e3273659 100644 --- a/sys/dev/virtio/scsi/virtio_scsi.c +++ b/sys/dev/virtio/scsi/virtio_scsi.c @@ -1795,7 +1795,7 @@ vtscsi_transport_reset_event(struct vtscsi_softc *sc, static void vtscsi_handle_event(struct vtscsi_softc *sc, struct virtio_scsi_event *event) { - int error; + int error __diagused; if ((event->event & VIRTIO_SCSI_T_EVENTS_MISSED) == 0) { switch (event->event) {