etoile / CoreObject

Distributed version control + object persistence framework

Home Page:http://coreobject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build problem on GNUstep

AlessandroSangiuliano opened this issue · comments

Trying to build on GNUstep I got:

Compiling file Core/COEditingContext.m ...
Core/COEditingContext.m:924:3: error: use of undeclared identifier '__unused'
__unused COPersistentRoot *loaded = [_loadedPersistentRo...
^
1 error generated.

clang 3.7 , Ubuntu 15.10

__unused is a GNU extension iirc

A temporary solution would be to switch CoreObject GNUMakefile to GNU99 instead of C99.

Another one would be to define an UNUSED macro that evaluates to nothing when GNUSTEP is defined. This would require to pass an extra flag to disable warnings about unused values in the GNUmakefile.

The first solution is probably the cleanest one currently.