From: Thomas Zimmermann Date: Tue, 9 Aug 2016 16:19:56 +0000 (+0200) Subject: Protect 'i' in _handle_inotify_watch by DBUS_ENABLE_VERBOSE_MODE X-Git-Tag: dbus-1.11.4~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67306f865b8c630d322f0dea20a80da5f0fc82ca;p=thirdparty%2Fdbus.git Protect 'i' in _handle_inotify_watch by DBUS_ENABLE_VERBOSE_MODE Signed-off-by: Thomas Zimmermann Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282 --- diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index ce19fdc8b..a287f0ba5 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -59,7 +59,9 @@ _handle_inotify_watch (DBusWatch *passed_watch, unsigned int flags, void *data) { char buffer[INOTIFY_BUF_LEN]; ssize_t ret = 0; +#ifdef DBUS_ENABLE_VERBOSE_MODE int i = 0; +#endif ret = read (inotify_fd, buffer, INOTIFY_BUF_LEN); if (ret < 0)