test: input: Fix used uninitialized warning in dix_event_to_core
input.c: In function ‘dix_event_to_core’:
../include/inputstr.h:61:55: warning: ‘*((void *)&ev+80)’ is used uninitialized in this function [-Wuninitialized]
#define SetBit(ptr, bit) (((BYTE *) (ptr))[(bit)>>3] |= (1 << ((bit) & 7)))
^~
Signed-off-by: Daniel Martin <consume.noise@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
04a305121f
commit
0bcc65f2bf
|
|
@ -230,7 +230,7 @@ dix_check_grab_values(void)
|
||||||
static void
|
static void
|
||||||
dix_event_to_core(int type)
|
dix_event_to_core(int type)
|
||||||
{
|
{
|
||||||
DeviceEvent ev;
|
DeviceEvent ev = {};
|
||||||
xEvent *core;
|
xEvent *core;
|
||||||
int time;
|
int time;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue