X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=example%2Fmemcached_light.c;h=86087c5a9b7010140a4de95a0ade3b1e2c5fb72f;hb=7ed5aa2c6673ab92559e52a29e83c0a44f3beebc;hp=741ef82e002b863c4679a50fcab015dd7a8e4b8a;hpb=0438a012ce75f5067aa95638519a30706494ab74;p=m6w6%2Flibmemcached diff --git a/example/memcached_light.c b/example/memcached_light.c index 741ef82e..86087c5a 100644 --- a/example/memcached_light.c +++ b/example/memcached_light.c @@ -40,6 +40,7 @@ #include #include #include "storage.h" +#include "memcached_light.h" extern memcached_binary_protocol_callback_st interface_v0_impl; extern memcached_binary_protocol_callback_st interface_v1_impl; @@ -229,6 +230,12 @@ int main(int argc, char **argv) int cmd; memcached_binary_protocol_callback_st *interface= &interface_v0_impl; + /* + * We need to initialize the handlers manually due to a bug in the + * warnings generated by struct initialization in gcc (all the way up to 4.4) + */ + initialize_iterface_v0_handler(); + while ((cmd= getopt(argc, argv, "v1p:?")) != EOF) { switch (cmd) {