Commit 667177d6 authored by Andreas Hartmetz's avatar Andreas Hartmetz

Prevent unused variable warnings when building for tests

parent 870a9e4d
......@@ -261,6 +261,7 @@ int Screens::number(const QPoint &pos) const
// TODO: Do something about testScreens and other tests that use MockScreens.
// They only make core code more convoluted with ifdefs.
#ifdef KWIN_UNIT_TEST
Q_UNUSED(pos)
return -1;
#else
int bestScreen = 0;
......@@ -289,6 +290,7 @@ AbstractOutput *Screens::findOutput(int screen) const
// TODO: Do something about testScreens and other tests that use MockScreens.
// They only make core code more convoluted with ifdefs.
#ifdef KWIN_UNIT_TEST
Q_UNUSED(screen)
return nullptr;
#else
return kwinApp()->platform()->findOutput(screen);
......
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