diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-07-26 20:00:23 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-07-26 20:00:23 +0000 |
commit | 3b8d77f8b92ae1eade001c2e45af3db7b7fcf7d4 (patch) | |
tree | 5b45addbed5addc3a70d16fefd83a00c5cd524de /UnitTesting | |
parent | 777beb4f267fd5d809ce8c13ed4dea942215e020 (diff) |
[Author: dmaclach]
Fix up GTM for Xcode 4.2
R=thomasvl
DELTA=9 (9 added, 0 deleted, 0 changed)
Diffstat (limited to 'UnitTesting')
-rw-r--r-- | UnitTesting/GTMSenTestCase.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/UnitTesting/GTMSenTestCase.h b/UnitTesting/GTMSenTestCase.h index f5156e4..2fb2c69 100644 --- a/UnitTesting/GTMSenTestCase.h +++ b/UnitTesting/GTMSenTestCase.h @@ -60,7 +60,16 @@ #ifdef __cplusplus extern "C" { #endif + +#if defined __clang__ +// gcc and gcc-llvm do not allow you to use STAssert(blah, nil) with nil +// as a description if you have the NS_FORMAT_FUNCTION on. +// clang however will not compile without warnings if you don't have it. NSString *STComposeString(NSString *, ...) NS_FORMAT_FUNCTION(1, 2); +#else +NSString *STComposeString(NSString *, ...); +#endif // __clang__ + #ifdef __cplusplus } #endif |