Skip to content

fix: warnings, - #10623

Open
camilasan wants to merge 2 commits into
masterfrom
bugfix/noid/warnings
Open

fix: warnings,#10623
camilasan wants to merge 2 commits into
masterfrom
bugfix/noid/warnings

Conversation

@camilasan

Copy link
Copy Markdown
Member

Resolves

Cleans up warnings during compilation time.

Checklist

AI (if applicable)

Cleans up compilation warnings:
"warning: use of GNU ?: conditional expression extension,
omitting middle operand [-Wgnu-conditional-omitted-operand]"

Assisted-by: Claude Code:claude-sonnet-5
Signed-off-by: Camila Ayres <hello@camilasan.com>
…ion.

Fix warning of unused variable.

Signed-off-by: Camila Ayres <hello@camilasan.com>
@camilasan camilasan added this to the 34.0.3 milestone Aug 18, 2026
@camilasan

Copy link
Copy Markdown
Member Author

/backport to stable-34.0

@camilasan camilasan changed the title Bugfix/noid/warnings fix: warnings, Aug 18, 2026
@sonarqubecloud

Copy link
Copy Markdown

Comment on lines -210 to +211
screen = NSScreen.mainScreen ?: NSScreen.screens.firstObject;
NSScreen *const mainScreen = NSScreen.mainScreen;
screen = mainScreen ? mainScreen : NSScreen.screens.firstObject;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we repeat this a lot, maybe it would be worth just having a small util function to avoid writing lots of

NSScreen *const mainScreen = NSScreen.mainScreen;
screen = mainScreen ? mainScreen : NSScreen.screens.firstObject;

Comment thread src/gui/systray.cpp
Comment on lines -203 to 215
void Systray::showTrayPopup(WindowPosition position)
void Systray::showTrayPopup([[maybe_unused]] WindowPosition position)
{
if (isOpen()) {
return;
}

if (!isSystemTrayAvailable()) {
showActivitiesWindow();
return;
}

#ifdef Q_OS_MACOS
if (showMacOSTrayPopup(geometry())) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter is only unused in the macOS branch. Maybe we can just use Q_UNUSED within this ifdef?

@github-actions

Copy link
Copy Markdown
Contributor

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

Digest: sha256:2ba6b4aa33e11d8aa942ebfcbf6767d0c817e7fa63af9200d44bf9240c996acc

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.

@Rello Rello modified the milestones: 34.0.3, 34.0.4 Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants