mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 21:38:00 +02:00
dir-watch-kqueue: Silence -Wshadow warning
This should be the last warning that is preventing us from using -Werror for FreeBSD builds.
This commit is contained in:
parent
9722d62149
commit
2480181af4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue