[client] spice: remove suprious const on function return type

const in the return type does nothing and triggers -Wignored-qualifiers.
This commit is contained in:
Quantum 2021-01-14 03:52:34 -05:00 committed by Geoffrey McRae
parent 0495f5de26
commit 5f20ee46a8

View File

@ -668,7 +668,7 @@ int spiceThread(void * arg)
return 0; return 0;
} }
static inline const uint32_t mapScancode(SDL_Scancode scancode) static inline uint32_t mapScancode(SDL_Scancode scancode)
{ {
uint32_t ps2; uint32_t ps2;
if (scancode > (sizeof(usb_to_ps2) / sizeof(uint32_t)) || (ps2 = usb_to_ps2[scancode]) == 0) if (scancode > (sizeof(usb_to_ps2) / sizeof(uint32_t)) || (ps2 = usb_to_ps2[scancode]) == 0)