Silence a GCC 8 warning in evdevtablet
qtbase/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp:85:36: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct QEvdevTabletData::<unnamed>’; use assignment or value-initialization instead [-Werror=class-memaccess] memset(&state, 0, sizeof(state)); Change-Id: I3b18ffa7fdf9c7aa1bd4977f12858fd1f176c020 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
00f89d61b9
commit
7eac2e7350
@ -82,7 +82,7 @@ QEvdevTabletData::QEvdevTabletData(QEvdevTabletHandler *q_ptr)
|
||||
{
|
||||
memset(&minValues, 0, sizeof(minValues));
|
||||
memset(&maxValues, 0, sizeof(maxValues));
|
||||
memset(&state, 0, sizeof(state));
|
||||
memset(static_cast<void *>(&state), 0, sizeof(state));
|
||||
}
|
||||
|
||||
void QEvdevTabletData::processInputEvent(input_event *ev)
|
||||
|
Loading…
Reference in New Issue
Block a user