Revision: 557
Author: gtm.daemon
Date: Thu Jul 26 13:00:23 2012
Log: [Author: dmaclach]
Fix up GTM for Xcode 4.2
R=thomasvl
DELTA=9 (9 added, 0 deleted, 0 changed)
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=557
Modified:
/trunk/UnitTesting/GTMSenTestCase.h
=======================================
--- /trunk/UnitTesting/GTMSenTestCase.h Thu Jul 26 07:00:20 2012
+++ /trunk/UnitTesting/GTMSenTestCase.h Thu Jul 26 13:00:23 2012
@@ -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