diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-13 23:08:19 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-13 23:08:19 +0000 |
commit | b25ddb782fd75b262b652fdcea9f8af90669e003 (patch) | |
tree | db50542e57b12f66adbbcb119323a5cf931a140c | |
parent | 3fbf4ca60b933ba3053805682fbcd6f376e9ab8e (diff) | |
download | src-b25ddb782fd75b262b652fdcea9f8af90669e003.tar.gz src-b25ddb782fd75b262b652fdcea9f8af90669e003.zip |
virtio: Use __diagused for variables only used in KASSERT().
-rw-r--r-- | sys/dev/virtio/balloon/virtio_balloon.c | 2 | ||||
-rw-r--r-- | 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) { |