diff --git a/src/cdrom/cdrom_image_viso.c b/src/cdrom/cdrom_image_viso.c index 7d24a1c9e..2feff2aff 100644 --- a/src/cdrom/cdrom_image_viso.c +++ b/src/cdrom/cdrom_image_viso.c @@ -632,7 +632,11 @@ pad_susp: } 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 */ return data[0]; diff --git a/src/device/mouse_wacom_tablet.c b/src/device/mouse_wacom_tablet.c index d9466146d..fa5c4651f 100644 --- a/src/device/mouse_wacom_tablet.c +++ b/src/device/mouse_wacom_tablet.c @@ -134,6 +134,8 @@ typedef struct { serial_t *serial; } mouse_wacom_t; +/* TODO: What is this needed for? */ +#if 0 static unsigned int reverse(register unsigned int x) { @@ -143,6 +145,7 @@ reverse(register unsigned int x) x = (((x & 0xff00ff00) >> 8) | ((x & 0x00ff00ff) << 8)); return ((x >> 16) | (x << 16)); } +#endif static double wacom_transmit_period(mouse_wacom_t *dev, int bps, int rps)