Skip to content

Commit

Permalink
Unreviewed, suppress a couple of warnings when compiling against newe…
Browse files Browse the repository at this point in the history
…r SDKs

rdar://123705222

Suppress `-Wobjc-method-access` here.

* Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm:
(WebCore::AVCaptureDeviceManager::registerForDeviceNotifications):

Canonical link: https://commits.webkit.org/275412@main
  • Loading branch information
whsieh committed Feb 27, 2024
1 parent a7d90be commit 6a053cf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ static inline bool isVideoDevice(AVCaptureDevice *device)
#if HAVE(AVCAPTUREDEVICE)
[[NSNotificationCenter defaultCenter] addObserver:m_objcObserver.get() selector:@selector(deviceConnectedDidChange:) name:AVCaptureDeviceWasConnectedNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:m_objcObserver.get() selector:@selector(deviceConnectedDidChange:) name:AVCaptureDeviceWasDisconnectedNotification object:nil];
IGNORE_WARNINGS_BEGIN("objc-method-access")
[PAL::getAVCaptureDeviceClass() addObserver:m_objcObserver.get() forKeyPath:@"systemPreferredCamera" options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:nil];
[PAL::getAVCaptureDeviceDiscoverySessionClass() addObserver:m_objcObserver.get() forKeyPath:@"devices" options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:nil];
IGNORE_WARNINGS_END
#endif
}

Expand Down

0 comments on commit 6a053cf

Please sign in to comment.