mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Made format_arg attribute require clang (apparently it doesn't work with GCC, in spite of being listed in the GCC manual - possibly it only works with C functions). If it works with GCC 4.6, the #ifdef should be changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31808 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f8ead763f
commit
26d3fd3e46
1 changed files with 5 additions and 1 deletions
|
@ -304,7 +304,11 @@ GS_EXPORT NSString* const NSLoadedClasses;
|
|||
*/
|
||||
- (NSString*) localizedStringForKey: (NSString*)key
|
||||
value: (NSString*)value
|
||||
table: (NSString*)tableName __attribute__((format_arg(1)));
|
||||
table: (NSString*)tableName
|
||||
#ifdef __clang__
|
||||
__attribute__((format_arg(1)))
|
||||
#endif
|
||||
;
|
||||
|
||||
/** Returns the absolute path to the resources directory of the bundle. */
|
||||
- (NSString*) resourcePath;
|
||||
|
|
Loading…
Reference in a new issue