From 4ef1d3a4de8685bc3e2bf6cd1ee5becb491dbc57 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 9 Aug 2016 18:19:56 +0200 Subject: Protect 'i' in |_handle_inotify_watch| by DBUS_ENABLE_VERBOSE_MODE Signed-off-by: Thomas Zimmermann --- bus/dir-watch-inotify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index e9ea0ed..2bba77b 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) -- 2.7.4