Processing: [default: loading data] [snkv.0.4.0: dl] [snkv.0.4.0: extract] -> retrieved snkv.0.4.0 (https://opam.ocaml.org/cache) [snkv: dune build] + /home/opam/.opam/default/bin/dune "build" "-p" "snkv" "-j" "32" "@install" (CWD=/home/opam/.opam/default/.opam-switch/build/snkv.0.4.0) - (cd _build/default/lib && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -Wall -fdiagnostics-color=always -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/ocaml/unix -o snkv_stubs.o -c snkv_stubs.c) - In file included from snkv_stubs.c:3: - snkv_stubs.c: In function 'val_of_string_copy': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:16:10: note: in expansion of macro 'String_val' - 16 | memcpy(String_val(v), s, len); - | ^~~~~~~~~~ - In file included from sqliteInt.h:638, - from kvstore.h:16, - from snkv_stubs.c:2: - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: In function 'ocaml_kvstore_get': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:359:10: note: in expansion of macro 'String_val' - 359 | memcpy(String_val(result), pValue, nValue); - | ^~~~~~~~~~ - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: In function 'ocaml_kvstore_cf_get': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:424:10: note: in expansion of macro 'String_val' - 424 | memcpy(String_val(result), pValue, nValue); - | ^~~~~~~~~~ - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: In function 'ocaml_kvstore_iterator_key': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:663:10: note: in expansion of macro 'String_val' - 663 | memcpy(String_val(result), pKey, nKey); - | ^~~~~~~~~~ - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: In function 'ocaml_kvstore_iterator_value': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:678:10: note: in expansion of macro 'String_val' - 678 | memcpy(String_val(result), pValue, nValue); - | ^~~~~~~~~~ - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: In function 'ocaml_kvstore_get_ttl': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:926:10: note: in expansion of macro 'String_val' - 926 | memcpy(String_val(Field(result, 0)), pValue, nValue); - | ^~~~~~~~~~ - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: In function 'ocaml_kvstore_cf_get_ttl': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - snkv_stubs.c:998:10: note: in expansion of macro 'String_val' - 998 | memcpy(String_val(Field(result, 0)), pValue, nValue); - | ^~~~~~~~~~ - /usr/include/string.h:43:39: note: expected 'void * restrict' but argument is of type 'const char *' - 43 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - | ~~~~~~~~~~~~~~~~~^~~~~~ - snkv_stubs.c: At top level: - snkv_stubs.c:21:13: warning: 'string_of_val' defined but not used [-Wunused-function] - 21 | static void string_of_val(value v, const char **out, int *len) { - | ^~~~~~~~~~~~~ - snkv_stubs.c:14:14: warning: 'val_of_string_copy' defined but not used [-Wunused-function] - 14 | static value val_of_string_copy(const char *s, int len) { - | ^~~~~~~~~~~~~~~~~~ -> compiled snkv.0.4.0 -> installed snkv.0.4.0