--- a/client/Wayland/wlfreerdp.c
+++ v/client/Wayland/wlfreerdp.c
@@ -587,7 +587,7 @@
 	DeleteCriticalSection(&wlf->critical);
 }
 
-static void* uwac_event_clone(const void* val)
+static void* uwac_event_clone(void* val)
 {
 	UwacEvent* copy;
 	UwacEvent* ev = (UwacEvent*)val;
