virtio: Use __diagused for variables only used in KASSERT().
This commit is contained in:
parent
3fbf4ca60b
commit
b25ddb782f
@ -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);
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user