Commit 5a0a86c3 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix unused variable warnings

parent eafe23b2
......@@ -237,6 +237,7 @@ MockInputMethod::~MockInputMethod()
void MockInputMethod::zwp_input_method_v1_activate(struct ::zwp_input_method_context_v1 *context)
{
Q_UNUSED(context)
if (!m_inputSurface) {
m_inputSurface = Test::createSurface();
m_inputMethodSurface = Test::createInputPanelSurfaceV1(m_inputSurface, s_waylandConnection.outputs.first());
......
......@@ -246,7 +246,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
for (InternalClient *client : ws->internalClients()) {
setupClientConnections(client);
}
if (auto w = waylandServer()) {
if (waylandServer()) {
const auto clients = waylandServer()->clients();
for (AbstractClient *c : clients) {
if (c->readyForPainting()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment