git: 2dfc07d2c600 - stable/13 - bhyve: Add an empty case for event types in mevent_kq_fflags().

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 10 May 2022 23:24:06 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=2dfc07d2c60046ad90e99fcadc6134ae9aad28d3

commit 2dfc07d2c60046ad90e99fcadc6134ae9aad28d3
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-25 18:25:25 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 22:51:49 +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
    
    (cherry picked from commit 7ecdfc823798a8f7add245651b26d9d900bc9889)
---
 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 e12a46ac9312..5170251e008b 100644
--- a/usr.sbin/bhyve/mevent.c
+++ b/usr.sbin/bhyve/mevent.c
@@ -197,6 +197,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);