From 346381e8b1902da6cb7be836bf3d4724628e9dbe Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 9 Nov 2018 09:52:57 +0000 Subject: Squash -Werror=cast-function-type warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/libwapcaplet.c:148:16: error: cast between incompatible function types from ‘void * (*)(void * restrict, const void * restrict, size_t)’ {aka ‘void * (*)(void * restrict, const void * restrict, long unsigned int)’} to ‘void (*)(char *, const char *, size_t)’ {aka ‘void (*)(char *, const char *, long unsigned int)’} [-Werror=cast-function-type] --- src/libwapcaplet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libwapcaplet.c b/src/libwapcaplet.c index 9521e96..403bf26 100644 --- a/src/libwapcaplet.c +++ b/src/libwapcaplet.c @@ -47,7 +47,7 @@ static lwc_context *ctx = NULL; typedef lwc_hash (*lwc_hasher)(const char *, size_t); typedef int (*lwc_strncmp)(const char *, const char *, size_t); -typedef void (*lwc_memcpy)(char *, const char *, size_t); +typedef void (*lwc_memcpy)(char * restrict, const char * restrict, size_t); static lwc_error lwc__initialise(void) -- cgit v1.2.1