« Return to Thread: Re: [Gnustep-cvs] r34996 - in /libs/base/trunk: ChangeLog Headers/Foundation/NSOperation.h Headers/GNUstepBase/GSBlocks.h Source/NSOperation.m Tests/base/NSOperation/basic.m

Re: [Gnustep-cvs] r34996 - in /libs/base/trunk: ChangeLog Headers/Foundation/NSOperation.h Headers/GNUstepBase/GSBlocks.h Source/NSOperation.m Tests/base/NSOperation/basic.m

by Fred Kiefer :: Rate this Message:

| View in Thread

On 26.03.2012 16:47, Niels Grewe wrote:

> Author: thebeing
> Date: Mon Mar 26 16:47:07 2012
> New Revision: 34996
>
> URL: http://svn.gna.org/viewcvs/gnustep?rev=34996&view=rev
> Log:
> Add completion block support to NSOperation.
>
> Modified:
>      libs/base/trunk/ChangeLog
>      libs/base/trunk/Headers/Foundation/NSOperation.h
>      libs/base/trunk/Headers/GNUstepBase/GSBlocks.h
>      libs/base/trunk/Source/NSOperation.m
>      libs/base/trunk/Tests/base/NSOperation/basic.m

This change breaks compilation on my OpenSuse 12.1 machine (64bit, gcc
4.6.2). The output I get is a bit cryptic:

Compiling file NSJSONSerialization.m ...
In file included from ../Headers/Foundation/Foundation.h:92:0,
                  from NSJSONSerialization.m:10:
../Headers/Foundation/NSOperation.h:154:1: error: expected declaration
specifiers or ‘...’ before ‘)’ token
../Headers/Foundation/NSOperation.h:154:1: warning: no semicolon at end
of struct or union [enabled by default]
make[4]: *** [obj/libgnustep-base.obj/NSJSONSerialization.m.o] Fehler 1
make[3]: *** [internal-library-all_] Fehler 2
make[2]: *** [libgnustep-base.all.library.variables] Fehler 2
make[1]: *** [internal-all] Fehler 2
make: *** [internal-all] Fehler 2

The problem seems to be the block type definition with just two
arguments. All the other block definitions have at least four arguments.

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

 « Return to Thread: Re: [Gnustep-cvs] r34996 - in /libs/base/trunk: ChangeLog Headers/Foundation/NSOperation.h Headers/GNUstepBase/GSBlocks.h Source/NSOperation.m Tests/base/NSOperation/basic.m