Title: [199600] trunk/Tools
Revision
199600
Author
[email protected]
Date
2016-04-15 11:33:29 -0700 (Fri, 15 Apr 2016)

Log Message

Build fix.

* LayoutTestRelay/LayoutTestRelay/main.m: Allow some deprecated methods.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (199599 => 199600)


--- trunk/Tools/ChangeLog	2016-04-15 18:26:50 UTC (rev 199599)
+++ trunk/Tools/ChangeLog	2016-04-15 18:33:29 UTC (rev 199600)
@@ -1,3 +1,9 @@
+2016-04-15  Alexey Proskuryakov  <[email protected]>
+
+        Build fix.
+
+        * LayoutTestRelay/LayoutTestRelay/main.m: Allow some deprecated methods.
+
 2016-04-14  Alexey Proskuryakov  <[email protected]>
 
         Some GuardMalloc bots are not happy when running many parallel processes

Modified: trunk/Tools/LayoutTestRelay/LayoutTestRelay/main.m (199599 => 199600)


--- trunk/Tools/LayoutTestRelay/LayoutTestRelay/main.m	2016-04-15 18:26:50 UTC (rev 199599)
+++ trunk/Tools/LayoutTestRelay/LayoutTestRelay/main.m	2016-04-15 18:33:29 UTC (rev 199600)
@@ -48,6 +48,8 @@
     NSString *deviceName = [[[[deviceType identifier] componentsSeparatedByString:@"."] lastObject] stringByReplacingOccurrencesOfString:@"-" withString:@" "];
     deviceName = [NSString stringWithFormat:@"%@%@%@", deviceName, @" WebKit Tester", suffix];
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     for (SimDevice *device in [[SimDeviceSet defaultSet] devices]) {
         if ([[device name] isEqualToString:deviceName] && [[device deviceType] isEqualTo:deviceType] && [[device runtime] isEqualTo:runtime])
             return device;
@@ -55,6 +57,7 @@
 
     NSError *error;
     SimDevice *device = [[SimDeviceSet defaultSet] createDeviceWithType:deviceType runtime:runtime name:deviceName error:&error];
+#pragma clang diagnostic pop
 
     if (error) {
         NSLog(@"Couldn't create device: %@", [error description]);
@@ -119,14 +122,20 @@
         }
         NSString *appPath = getRequiredStringArgument(@"app");
         NSString *runtimeIdentifier = getRequiredStringArgument(@"runtime");
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         SimRuntime *runtime = [SimRuntime supportedRuntimesByIdentifier][runtimeIdentifier];
+#pragma clang diagnostic pop
         if (!runtime) {
             NSLog(@"There is no supported runtime \"%@\"", runtimeIdentifier);
             exit(EXIT_FAILURE);
         }
 
         NSString *deviceTypeIdentifier = getRequiredStringArgument(@"deviceType");
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         SimDeviceType *deviceType = [SimDeviceType supportedDeviceTypesByIdentifier][deviceTypeIdentifier];
+#pragma clang diagnostic pop
         if (!deviceType) {
             NSLog(@"There is no supported device type \"%@\"", deviceTypeIdentifier);
             exit(EXIT_FAILURE);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to