« Return to Thread: DBusKit build failure

Re: DBusKit build failure

by David Chisnall :: Rate this Message:

| View in Thread

I believe it was a design decision for DBusKit that it require C99 support.  It doesn't seem unreasonable, now C99 has now been superseded by C11, to expect a compiler to support the 13 year old standard...

David

On 21 Apr 2012, at 12:03, Philippe Roussel wrote:

> 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@...
> https://lists.gnu.org/mailman/listinfo/gnustep-dev

-- Send from my Jacquard Loom


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
https://lists.gnu.org/mailman/listinfo/gnustep-dev

 « Return to Thread: DBusKit build failure