Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 23:24:06 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2dfc07d2c600 - stable/13 - bhyve: Add an empty case for event types in mevent_kq_fflags().
Message-ID:  <202205102324.24ANO6GE072389@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205102324.24ANO6GE072389>