Files
OpenVR-AdvancedSettings-frame/src/tabcontrollers/keyboardinput/KeyboardInputDummy.cpp
T
Vasily f32c91fe03 Fix GCC warning about unused value
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.
2018-12-27 13:09:17 +01:00

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
}
}