warnings on Windows

Vincent Torri vincent.torri at gmail.com
Wed Dec 12 14:49:31 PST 2012


hey

I have these warnings :

make[2]: Entering directory `/home/torri/tmp/dbus-1.6.8/tools'
  CC     dbus-launch-win.o
dbus-launch-win.c: In function ‘main’:
dbus-launch-win.c:163:18: warning: format ‘%d’ expects argument of
type ‘int’, but argument 3 has type ‘DWORD’ [-Wformat]
                  GetLastError ());
                  ^

just use %ld instead of %d

dbus-launch-win.c:92:7: warning: variable ‘showConsole’ set but not
used [-Wunused-but-set-variable]
   int showConsole = 0;
       ^

put it under

#ifdef AUTO_ACTIVATE_CONSOLE_WHEN_VERBOSE_MODE

but it's anyway not used at all

regards

Vincent Torri


More information about the dbus mailing list