aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMDevLogUnitTestingBridge.m7
-rw-r--r--UnitTesting/GTMUnitTestDevLog.m7
2 files changed, 0 insertions, 14 deletions
diff --git a/UnitTesting/GTMDevLogUnitTestingBridge.m b/UnitTesting/GTMDevLogUnitTestingBridge.m
index 11aee7d..88d4e93 100644
--- a/UnitTesting/GTMDevLogUnitTestingBridge.m
+++ b/UnitTesting/GTMDevLogUnitTestingBridge.m
@@ -31,10 +31,6 @@
//
// See GTMUnitTestDevLog.h for more information on checking logs in unittests.
//
-#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 _GTMUnitTestDevLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2) {
Class devLogClass = NSClassFromString(@"GTMUnitTestDevLog");
va_list argList;
@@ -46,6 +42,3 @@ void _GTMUnitTestDevLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2) {
}
va_end(argList);
}
-#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || defined (__clang__)
-#pragma GCC diagnostic pop
-#endif // Compiler version checks
diff --git a/UnitTesting/GTMUnitTestDevLog.m b/UnitTesting/GTMUnitTestDevLog.m
index 8c76e3c..dbc6a12 100644
--- a/UnitTesting/GTMUnitTestDevLog.m
+++ b/UnitTesting/GTMUnitTestDevLog.m
@@ -158,10 +158,6 @@ 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
@@ -199,9 +195,6 @@ 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;