gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnustep-cvs] r31804 - /libs/base/trunk/Headers/Foundation/NSBundle.


From: Fred Kiefer
Subject: Re: [Gnustep-cvs] r31804 - /libs/base/trunk/Headers/Foundation/NSBundle.h
Date: Fri, 31 Dec 2010 16:52:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11

Am 31.12.2010 15:03, schrieb David Chisnall:
> Author: theraven
> Date: Fri Dec 31 15:03:45 2010
> New Revision: 31804
> 
> URL: http://svn.gna.org/viewcvs/gnustep?rev=31804&view=rev
> Log:
> Add __attribute__ ((format_arg)) to [NSBundle 
> -localizedStringForKey:value:table:].  This informs the compiler that the 
> output can be used anywhere that the first argument can be used, and should 
> silence all of the non-constant format string warnings that we get anywhere 
> that _(@"foo") or similar is used.
> 
> 
> Modified:
>     libs/base/trunk/Headers/Foundation/NSBundle.h

This change breaks compilation of base for me:

In file included from GSXML.m:57:0:
../../Headers/Foundation/NSBundle.h:307:38: error: expected ‘;’ before
‘__attribute__’
make[4]: *** [obj/Additions.obj/GSXML.m.o] Fehler 1
make[4]: *** Warte auf noch nicht beendete Prozesse...
make[3]: *** [internal-subproject-all_] Fehler 2
make[2]: *** [Additions.all.subproject.variables] Fehler 2
make[1]: *** [internal-all] Fehler 2
make: *** [internal-all] Fehler 2

I am using gcc version 4.5.0 and I am not sure whether there is just
another compiler flag missing or whether this attribute isn't supported
for Objective-C.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]