Commit 92c39d1d authored by Ralf Habacker's avatar Ralf Habacker

Fix of 'warning: variable ‘..‘ set but not used [-Wunused-but-set-variable]'.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89284Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent 40a6b6e8
......@@ -400,20 +400,18 @@ main (int argc,
int result;
DBusConnection *connection;
const char *name;
dbus_bool_t do_fork;
#ifndef DBUS_WIN
dbus_bool_t do_fork = FALSE;
#endif
if (argc != 3)
{
name = "org.freedesktop.DBus.TestSuiteEchoService";
do_fork = FALSE;
}
else
{
name = argv[1];
#ifndef DBUS_WIN
do_fork = strcmp (argv[2], "fork") == 0;
#else
do_fork = FALSE;
#endif
}
......
......@@ -89,7 +89,7 @@ main (int argc, char **argv)
wchar_t *p;
wchar_t *daemon_name;
int result;
int showConsole = 0;
#ifdef DBUS_WINCE
char *s = NULL;
#else
......@@ -102,10 +102,6 @@ main (int argc, char **argv)
BOOL inherit = TRUE;
DWORD flags = 0;
#ifdef AUTO_ACTIVATE_CONSOLE_WHEN_VERBOSE_MODE
if (verbose)
showConsole = 1;
#endif
GetModuleFileNameW (NULL, dbusDaemonPath, DIM (dbusDaemonPath));
daemon_name = WCSTRINGIFY(DBUS_DAEMON_NAME) L".exe";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment