Fix -Wunused-variable
ClosedPublic

Authored by zzag on Nov 20 2018, 6:30 PM.

Details

Summary

Compiler warning message:

[524/1591] Building CXX object CMakeFiles/kwin.dir/workspace.cpp.o
/home/vlad/Workspace/KDE/src/kde/workspace/kwin/workspace.cpp: In lambda function:
/home/vlad/Workspace/KDE/src/kde/workspace/kwin/workspace.cpp:233:47: warning: unused variable ‘otherDesktop’ [-Wunused-variable]
                         const VirtualDesktop *otherDesktop = VirtualDesktopManager::self()->desktops().first();
                                               ^~~~~~~~~~~~
Test Plan

Compiles.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Nov 20 2018, 6:30 PM
Restricted Application added a project: KWin. · View Herald TranscriptNov 20 2018, 6:30 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Nov 20 2018, 6:30 PM
davidedmundson accepted this revision.Nov 20 2018, 6:32 PM
This revision is now accepted and ready to land.Nov 20 2018, 6:32 PM
This revision was automatically updated to reflect the committed changes.