Fix unused variable warnings

This commit is contained in:
Vlad Zahorodnii 2020-09-10 10:10:31 +03:00
parent eafe23b27c
commit 5a0a86c358
2 changed files with 2 additions and 1 deletions

View file

@ -237,6 +237,7 @@ MockInputMethod::~MockInputMethod()
void MockInputMethod::zwp_input_method_v1_activate(struct ::zwp_input_method_context_v1 *context) void MockInputMethod::zwp_input_method_v1_activate(struct ::zwp_input_method_context_v1 *context)
{ {
Q_UNUSED(context)
if (!m_inputSurface) { if (!m_inputSurface) {
m_inputSurface = Test::createSurface(); m_inputSurface = Test::createSurface();
m_inputMethodSurface = Test::createInputPanelSurfaceV1(m_inputSurface, s_waylandConnection.outputs.first()); m_inputMethodSurface = Test::createInputPanelSurfaceV1(m_inputSurface, s_waylandConnection.outputs.first());

View file

@ -246,7 +246,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
for (InternalClient *client : ws->internalClients()) { for (InternalClient *client : ws->internalClients()) {
setupClientConnections(client); setupClientConnections(client);
} }
if (auto w = waylandServer()) { if (waylandServer()) {
const auto clients = waylandServer()->clients(); const auto clients = waylandServer()->clients();
for (AbstractClient *c : clients) { for (AbstractClient *c : clients) {
if (c->readyForPainting()) { if (c->readyForPainting()) {