diff options
author | 2012-06-14 12:00:37 +0000 | |
---|---|---|
committer | 2012-06-14 12:00:37 +0000 | |
commit | cd93e46818d8e983344696918d3af8e3bff0577a (patch) | |
tree | 3cdbf0c979ffb538bcc3d8e142916b9f79d73b94 /UnitTesting/GTMUnitTestDevLog.m | |
parent | cc89934c12cf41f71d1370247fc804ce55c6fa1e (diff) |
[Author: thomasvl]
One more shot at working with older compilers.
TBR=dmaclach
Diffstat (limited to 'UnitTesting/GTMUnitTestDevLog.m')
-rw-r--r-- | UnitTesting/GTMUnitTestDevLog.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/UnitTesting/GTMUnitTestDevLog.m b/UnitTesting/GTMUnitTestDevLog.m index 7c7b293..8c76e3c 100644 --- a/UnitTesting/GTMUnitTestDevLog.m +++ b/UnitTesting/GTMUnitTestDevLog.m @@ -158,8 +158,10 @@ static BOOL gTrackingEnabled = NO; va_end(argList); } +#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || defined (__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-nonliteral" +#endif // Compiler version checks + (void)log:(NSString*)format args:(va_list)args { if ([self isTrackingEnabled]) { NSString *logString = [[[NSString alloc] initWithFormat:format @@ -197,7 +199,9 @@ static BOOL gTrackingEnabled = NO; NSLogv(format, args); } } +#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || defined (__clang__) #pragma GCC diagnostic pop +#endif // Compiler version checks + (void)expectString:(NSString *)format, ... { va_list argList; |