Mark test_data static in Xinput protocol tests to avoid clashes
Fixes warning from Solaris linker: ld: warning: symbol 'test_data' has differing sizes: (file tests-protocol-xigetselectedevents.o value=0x418; file tests-protocol-xigetclientpointer.o value=0x18); tests-protocol-xigetselectedevents.o definition taken Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7bfb87a213
commit
f81343dd2f
|
@ -40,7 +40,7 @@
|
|||
|
||||
#include "protocol-common.h"
|
||||
|
||||
struct {
|
||||
static struct {
|
||||
int cp_is_set;
|
||||
DeviceIntPtr dev;
|
||||
int win;
|
||||
|
|
|
@ -54,7 +54,7 @@ static void reply_XIGetSelectedEvents(ClientPtr client, int len, char *data,
|
|||
static void reply_XIGetSelectedEvents_data(ClientPtr client, int len,
|
||||
char *data, void *userdata);
|
||||
|
||||
struct {
|
||||
static struct {
|
||||
int num_masks_expected;
|
||||
unsigned char mask[MAXDEVICES][XI2LASTEVENT]; /* intentionally bigger */
|
||||
int mask_len;
|
||||
|
|
|
@ -47,7 +47,7 @@ static ClientRec client_request;
|
|||
#define N_MODS 7
|
||||
static uint32_t modifiers[N_MODS] = { 1, 2, 3, 4, 5, 6, 7 };
|
||||
|
||||
struct test_data {
|
||||
static struct test_data {
|
||||
int num_modifiers;
|
||||
} testdata;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user