Code

memcached plugin: fix compiler warning on Solaris
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:41:00 +0000 (13:41 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:44:47 +0000 (13:44 +0200)
commit6e9778c88af6a290e81bcfda12d6d45c92b931b5
tree2b6869be4fe1750c2958ecb17a57182676f7e6de
parent5a29f19d5501857ddc048ddb37e779fc5fe253df
memcached plugin: fix compiler warning on Solaris

|  ud.free_func = (void *) memcached_free;
|               ^  line 559, memcached.c
assignment type mismatch:
pointer to function(pointer to void) returning void "=" pointer to void

Casting a function pointer to a void pointer is undefined behaviour
in C (it is defined in POSIX however)
src/memcached.c