git: 7ecdfc823798 - main - bhyve: Add an empty case for event types in mevent_kq_fflags().
John Baldwin
jhb at FreeBSD.org
Sat Sep 25 18:30:36 UTC 2021
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=7ecdfc823798a8f7add245651b26d9d900bc9889
commit 7ecdfc823798a8f7add245651b26d9d900bc9889
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-09-25 18:25:25 +0000
Commit: John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-09-25 18:25:25 +0000
bhyve: Add an empty case for event types in mevent_kq_fflags().
This fixes a -Wswitch error raised by GCC 9.
Differential Revision: https://reviews.freebsd.org/D31938
---
usr.sbin/bhyve/mevent.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/usr.sbin/bhyve/mevent.c b/usr.sbin/bhyve/mevent.c
index 0c5351cd31a9..eb84dc15ad47 100644
--- a/usr.sbin/bhyve/mevent.c
+++ b/usr.sbin/bhyve/mevent.c
@@ -190,6 +190,11 @@ mevent_kq_fflags(struct mevent *mevp)
if ((mevp->me_fflags & EVFF_ATTRIB) != 0)
retval |= NOTE_ATTRIB;
break;
+ case EVF_READ:
+ case EVF_WRITE:
+ case EVF_TIMER:
+ case EVF_SIGNAL:
+ break;
}
return (retval);
More information about the dev-commits-src-main
mailing list