From 2480181af4ef0cae65aab303e103b58d8f6f2066 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Sun, 15 May 2022 11:34:48 +0100 Subject: [PATCH] dir-watch-kqueue: Silence -Wshadow warning This should be the last warning that is preventing us from using -Werror for FreeBSD builds. --- bus/dir-watch-kqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bus/dir-watch-kqueue.c b/bus/dir-watch-kqueue.c index 15519fcb5..a4ed7ca58 100644 --- a/bus/dir-watch-kqueue.c +++ b/bus/dir-watch-kqueue.c @@ -51,7 +51,7 @@ static DBusWatch *watch = NULL; static DBusLoop *loop = NULL; static dbus_bool_t -_handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) +_handle_kqueue_watch (DBusWatch *_watch, unsigned int flags, void *data) { struct kevent ev; struct timespec nullts = { 0, 0 }; @@ -73,6 +73,7 @@ _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) else if (res < 0 && errno == EBADF) { kq = -1; + _dbus_assert (watch == _watch); if (watch != NULL) { _dbus_loop_remove_watch (loop, watch); -- 2.47.3