Hi, With gcc I get the following :
> Making all for framework DBusKit... > Compiling file NSConnection+DBus.m ... > NSConnection+DBus.m: In function '+[NSConnection(DBusKit) load]': > NSConnection+DBus.m:58:3: error: ISO C90 forbids mixed declarations and code > [-Werror=declaration-after-statement] > cc1obj: all warnings being treated as errors Simple fix : Index: Source/NSConnection+DBus.m =================================================================== --- Source/NSConnection+DBus.m (révision 35095) +++ Source/NSConnection+DBus.m (copie de travail) @@ -49,20 +49,23 @@ @implementation NSConnection (DBusKit) + (void)load { + Method oldRootProxyMethod, newRootProxyMethod; + Method oldSetRootObjectMethod, newSetRootObjectMethod; + /* * We do some devious patching and replace some method implementations in * NSConnection with the ones from this category. */ rootProxySel = @selector(rootProxy); setRootObjectSel = @selector(setRootObject:); - Method oldRootProxyMethod = + oldRootProxyMethod = class_getInstanceMethod(objc_getClass("NSConnection"), rootProxySel); - Method newRootProxyMethod = + newRootProxyMethod = class_getInstanceMethod(objc_getClass("NSConnection"), @selector(_DKRootProxy)); - Method oldSetRootObjectMethod = + oldSetRootObjectMethod = class_getInstanceMethod(objc_getClass("NSConnection"), setRootObjectSel); - Method newSetRootObjectMethod = + newSetRootObjectMethod = class_getInstanceMethod(objc_getClass("NSConnection"), @selector(_DKSetRootObject:)); _DKNSConnectionRootProxy = method_getImplementation(oldRootProxyMethod); _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev