From f0f95165e4324ce349c4409715d4f2a638bd1066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 19 Jun 2019 21:10:55 +0200 Subject: [PATCH] WINGs/selection.c Removed compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes this warning: selection.c:265:64: warning: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Wcast-function-type] wdata = WMCreateDataWithBytesNoCopy((void *) data, len * bpi, (WMFreeDataProc *) XFree); Signed-off-by: Rodolfo García Peñas (kix) --- WINGs/selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/selection.c b/WINGs/selection.c index 64d71fb4..de0f9f7e 100644 --- a/WINGs/selection.c +++ b/WINGs/selection.c @@ -261,7 +261,7 @@ static WMData *getSelectionData(Display * dpy, Window win, Atom where) bpi = bits / 8; - wdata = WMCreateDataWithBytesNoCopy(data, len * bpi, (WMFreeDataProc *) XFree); + wdata = WMCreateDataWithBytesNoCopy(data, len * bpi, (void *) XFree); WMSetDataFormat(wdata, bits); return wdata;