Fix compilation error with Clang 8 in BGMOutputDeviceMenuSection.

This commit is contained in:
Kyle Neideck 2018-11-04 17:57:42 +11:00
parent 7b8d1a0e0d
commit 64b7ca9fd9
No known key found for this signature in database
GPG key ID: CAA8D9B8E39EC18C

View file

@ -295,10 +295,12 @@ static NSInteger const kOutputDeviceMenuItemTag = 5;
item.representedObject = @{ @"deviceID": @(device.GetObjectID()),
@"dataSourceID": dataSourceID ? BGMNN(dataSourceID) : [NSNull null] };
#if __clang_major__ >= 9
if (@available(macOS 10.10, *)) {
// Used for UI tests.
item.accessibilityIdentifier = @"output-device";
}
#endif
return item;
}