From 200471d7f1094dfd1814c629c3fc453ea7a4ae8d Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 24 Apr 2025 20:42:44 +0800 Subject: [PATCH] fix(gui): Fix set but unused warning in switch statement for sync status compute Signed-off-by: Claudio Cambra --- src/gui/owncloudgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index e387275968cad..fea5ddf7507c0 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -327,7 +327,7 @@ void ownCloudGui::slotComputeOverallSyncStatus() if (!fileProvider->xpc()->fileProviderExtReachable(accountFpId)) { problemFileProviderAccounts.append(accountFpId); } else { - switch (const auto latestStatus = fileProvider->socketServer()->latestReceivedSyncStatusForAccount(accountState->account())) { + switch (fileProvider->socketServer()->latestReceivedSyncStatusForAccount(accountState->account())) { case SyncResult::Undefined: case SyncResult::NotYetStarted: idleFileProviderAccounts.append(accountFpId);