Fixed warnings in the VISO and Wacom Tablet codes.
This commit is contained in:
@@ -632,7 +632,11 @@ pad_susp:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((p - data) > 255)
|
if ((p - data) > 255)
|
||||||
fatal("VISO: Directory record overflow (%d) on entry %08X\n", p - data, entry);
|
#if (defined __amd64__ || defined _M_X64 || defined __aarch64__ || defined _M_ARM64)
|
||||||
|
fatal("VISO: Directory record overflow (%d) on entry %016" PRIX64 "\n", (uint32_t) (uintptr_t) (p - data), (uint64_t) (uintptr_t) entry);
|
||||||
|
#else
|
||||||
|
fatal("VISO: Directory record overflow (%d) on entry %08X\n", (uint32_t) (uintptr_t) (p - data), (uint32_t) (uintptr_t) entry);
|
||||||
|
#endif
|
||||||
|
|
||||||
data[0] = p - data; /* length */
|
data[0] = p - data; /* length */
|
||||||
return data[0];
|
return data[0];
|
||||||
|
@@ -134,6 +134,8 @@ typedef struct {
|
|||||||
serial_t *serial;
|
serial_t *serial;
|
||||||
} mouse_wacom_t;
|
} mouse_wacom_t;
|
||||||
|
|
||||||
|
/* TODO: What is this needed for? */
|
||||||
|
#if 0
|
||||||
static unsigned int
|
static unsigned int
|
||||||
reverse(register unsigned int x)
|
reverse(register unsigned int x)
|
||||||
{
|
{
|
||||||
@@ -143,6 +145,7 @@ reverse(register unsigned int x)
|
|||||||
x = (((x & 0xff00ff00) >> 8) | ((x & 0x00ff00ff) << 8));
|
x = (((x & 0xff00ff00) >> 8) | ((x & 0x00ff00ff) << 8));
|
||||||
return ((x >> 16) | (x << 16));
|
return ((x >> 16) | (x << 16));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static double
|
static double
|
||||||
wacom_transmit_period(mouse_wacom_t *dev, int bps, int rps)
|
wacom_transmit_period(mouse_wacom_t *dev, int bps, int rps)
|
||||||
|
Reference in New Issue
Block a user