Skip to content

[stable-33.0] fix(macOS): Resolved Some Xcode Compiler Warnings#9507

Merged
i2h3 merged 2 commits intostable-33.0from
backport/9500/stable-33.0
Feb 24, 2026
Merged

[stable-33.0] fix(macOS): Resolved Some Xcode Compiler Warnings#9507
i2h3 merged 2 commits intostable-33.0from
backport/9500/stable-33.0

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Feb 24, 2026

Backport of PR #9500

@backportbot backportbot bot requested a review from i2h3 February 24, 2026 11:33
@backportbot backportbot bot added bug os: 🍎 macOS Apple macOS, formerly also known as OS X 3. to review labels Feb 24, 2026
@backportbot backportbot bot added this to the 33.0.0 milestone Feb 24, 2026
i2h3 added 2 commits February 24, 2026 11:34
… in dispatch_async blocks

- Addressed compiler warnings about “block implicitly retains ‘self’” in FinderSyncSocketLineProcessor.m by explicitly handling self capture in all dispatch_async blocks within the process: method.
- For each block that referenced self (STATUS, UPDATE_VIEW, REGISTER_PATH, UNREGISTER_PATH, STRING, GET_MENU_ITEMS BEGIN, and MENU_ITEM), introduced a weak-then-strong self pattern:
   - Declared __weak typeof(self) weakSelf = self; before the block.
   - Inside the block, re-established a strong reference with __strong typeof(self) self = weakSelf; and guarded with if (!self) return;.
- Updated logging inside blocks to use self->_log to ensure explicit self usage.
- Preserved existing logic and behavior for delegate calls and logging while eliminating -Wimplicit-retain-self warnings and reducing risk of retain cycles.

Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-9507.zip

Digest: sha256:941910292ab5ad07891c418627cee282f3af1715f56051a4d574f94e78a9e246

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@i2h3 i2h3 merged commit 9ac1b89 into stable-33.0 Feb 24, 2026
14 of 17 checks passed
@i2h3 i2h3 deleted the backport/9500/stable-33.0 branch February 24, 2026 11:54
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug os: 🍎 macOS Apple macOS, formerly also known as OS X

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant