D-bus not compiling label out used but not defined

Olivier Andrieu oliv__a at users.sourceforge.net
Tue Jul 20 12:47:53 PDT 2004

 Farhad Saberi [Sun, 18 Jul 2004]:
 > hi,
 >  i'm on Solaris 8 with gcc 3.3.2. When i try to compile dbus-0.21, i get 
 > this error:
 > ...
 > bus-sysdeps.c:1567: warning: label `failed' defined but not used
 > dbus-sysdeps.c:1554: error: label `out' used but not defined
 > make[1]: *** [dbus-sysdeps.lo] Error 1
 > ...

just change the `goto out;' into `goto failed;'

 > But I do see the  'out' label in the file at line 2298 in dbus-sysdeps.c.
 > Any ideas why the compiler is not seeing the 'out' goto label ? 

Well it's in another function. Labels' scope is limited to functions
in C.


More information about the dbus mailing list