From 2fb586989c7022abc9e0159dcb1b583ab6577d7a Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 31 Oct 2015 21:06:04 +0100 Subject: [PATCH 4/6] Fix warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]. --- dbus/dbus-sysdeps-win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index fd2982b..17cb866 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2935,6 +2935,7 @@ _dbus_daemon_publish_session_bus_address (const char* address, const char *scope char *shared_addr = NULL; DBusString shm_name; DBusString mutex_name; + dbus_uint64_t len; _dbus_assert (address); @@ -2969,7 +2970,7 @@ _dbus_daemon_publish_session_bus_address (const char* address, const char *scope } // create shm - dbus_uint64_t len = strlen( address ) + 1; + len = strlen( address ) + 1; hDBusSharedMem = CreateFileMappingA( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, len >> 32, len & 0xffffffffu, -- 1.8.4.5