The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7ecdfc823798a8f7add245651b26d9d900bc9889

commit 7ecdfc823798a8f7add245651b26d9d900bc9889
Author:     John Baldwin <[email protected]>
AuthorDate: 2021-09-25 18:25:25 +0000
Commit:     John Baldwin <[email protected]>
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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to