diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-11-09 09:52:57 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-11-09 09:52:57 +0000 |
commit | 346381e8b1902da6cb7be836bf3d4724628e9dbe (patch) | |
tree | fcf86b2f26b9e7f09b2cdcaa21d81e3ebaf17ff2 | |
parent | cedd6b600078828db294d9398851f4aa481b60f2 (diff) | |
download | libwapcaplet-346381e8b1902da6cb7be836bf3d4724628e9dbe.tar.gz libwapcaplet-346381e8b1902da6cb7be836bf3d4724628e9dbe.tar.bz2 |
Squash -Werror=cast-function-type warning.
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]
-rw-r--r-- | src/libwapcaplet.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |