]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Protect debug-only variables behind DBUS_ENABLE_VERBOSE_MODE
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 19 Aug 2016 09:23:54 +0000 (11:23 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 10 Oct 2016 14:09:33 +0000 (15:09 +0100)
Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Reviewed-by: Simon McVittie <smcv@debian.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97357

dbus/dbus-sysdeps-win.c

index f3407086211689f14c78d81a09ec73e5fbb2ebbd..62e7023535cd1f9f13577b05e78639f37400356a 100644 (file)
@@ -1316,9 +1316,11 @@ _dbus_poll (DBusPollFD *fds,
 
 #else   /* USE_CHRIS_IMPL */
 
+#ifdef DBUS_ENABLE_VERBOSE_MODE
 #define DBUS_POLL_CHAR_BUFFER_SIZE 2000
   char msg[DBUS_POLL_CHAR_BUFFER_SIZE];
   char *msgp;
+#endif
 
   fd_set read_set, write_set, err_set;
   SOCKET max_fd = 0;