Date: Tue, 14 Dec 2021 14:15:11 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 4d78ef3e811f - main - virtio console: plug set-but-not-used vars Message-ID: <202112141415.1BEEFBik094211@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 commit 4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-14 14:14:34 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-12-14 14:14:34 +0000 virtio console: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/virtio/console/virtio_console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c index b65935303b21..33192f0bf618 100644 --- a/sys/dev/virtio/console/virtio_console.c +++ b/sys/dev/virtio/console/virtio_console.c @@ -616,7 +616,7 @@ vtcon_ctrl_event_enqueue(struct vtcon_softc *sc, struct sglist_seg segs[2]; struct sglist sg; struct virtqueue *vq; - int error; + int error __diagused; vq = sc->vtcon_ctrl_rxvq; @@ -649,7 +649,7 @@ static void vtcon_ctrl_event_requeue(struct vtcon_softc *sc, struct virtio_console_control *control) { - int error; + int error __diagused; bzero(control, VTCON_CTRL_BUFSZ); @@ -1048,7 +1048,7 @@ vtcon_port_create_buf(struct vtcon_port *port) static void vtcon_port_requeue_buf(struct vtcon_port *port, void *buf) { - int error; + int error __diagused; error = vtcon_port_enqueue_buf(port, buf, VTCON_BULK_BUFSZ); KASSERT(error == 0,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112141415.1BEEFBik094211>