diff --git a/src/gui/osutils/macutils/AppKitImpl.mm b/src/gui/osutils/macutils/AppKitImpl.mm index a71b19cc88..a2b30e5532 100644 --- a/src/gui/osutils/macutils/AppKitImpl.mm +++ b/src/gui/osutils/macutils/AppKitImpl.mm @@ -194,6 +194,7 @@ - (bool) enableScreenRecording // Attempt to use SCShareableContent to check for screen recording permission [SCShareableContent getShareableContentWithCompletionHandler:^(SCShareableContent * _Nullable content, NSError * _Nullable error) { + Q_UNUSED(error); if (content) { // Successfully obtained content, indicating permission is granted hasPermission = YES;