captured variable is unused
(cherry picked from commit a9698ea6)
Co-authored-by: Aleix Pol aleixpol@kde.org