Casting to void should shut up GCC about error: statement has no effect [-Werror=unused-value] static_cast<void>() is possible for all current types. Supposedly an old C style cast could also be used, but they should not be used in modern C++ code.
32 lines
593 B
C++
32 lines
593 B
C++
#include "KeyboardInputDummy.h"
|
|
|
|
// Used to get the compiler to shut up about C4100: unreferenced formal parameter.
|
|
// The cast is to get GCC to shut up about it.
|
|
#define UNREFERENCED_PARAMETER(P) static_cast<void>((P))
|
|
|
|
namespace advsettings {
|
|
|
|
void KeyboardInputDummy::sendKeyboardInput(QString input)
|
|
{
|
|
// noop
|
|
UNREFERENCED_PARAMETER(input);
|
|
}
|
|
|
|
void KeyboardInputDummy::sendKeyboardEnter()
|
|
{
|
|
// noop
|
|
}
|
|
|
|
void KeyboardInputDummy::sendKeyboardBackspace(int count)
|
|
{
|
|
// noop
|
|
UNREFERENCED_PARAMETER(count);
|
|
}
|
|
|
|
void KeyboardInputDummy::sendKeyboardAltTab()
|
|
{
|
|
// noop
|
|
}
|
|
|
|
}
|