Processing: [default: loading data] [ezsqlite.0.4.2: dl] [ezsqlite.0.4.2: extract] -> retrieved ezsqlite.0.4.2 (https://opam.ocaml.org/cache) [ezsqlite: dune build] + /home/opam/.opam/default/bin/dune "build" "-p" "ezsqlite" "-j" "32" (CWD=/home/opam/.opam/default/.opam-switch/build/ezsqlite.0.4.2) - (cd _build/default/lib && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/cstruct -I /home/opam/.opam/default/lib/hex -I /home/opam/.opam/default/lib/ocaml/str -o ezsqlite_stubs.o -c ezsqlite_stubs.c) - ezsqlite_stubs.c: In function 'sqlite3_error': - ezsqlite_stubs.c:19:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 19 | value *sqlite_error = caml_named_value("sqlite error"); - | ^~~~~~~~~~~~~~~~ - In file included from ezsqlite_stubs.c:3: - ezsqlite_stubs.c: In function 'copy_s': - /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)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ezsqlite_stubs.c:42:16: note: in expansion of macro 'String_val' - 42 | memcpy(String_val(s), b, len); - | ^~~~~~~~~~ - In file included from ezsqlite_stubs.c:11: - /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, - | ~~~~~~~~~~~~~~~~~^~~~~~ - ezsqlite_stubs.c: In function '_ezsqlite_db_create_function': - ezsqlite_stubs.c:122:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 122 | value *fn = caml_named_value (String_val(name)); - | ^~~~~~~~~~~~~~~~ - ezsqlite_stubs.c: In function 'commit_hook_callback': - ezsqlite_stubs.c:129:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 129 | value *v = caml_named_value("commit hook"); - | ^~~~~~~~~~~~~~~~ - ezsqlite_stubs.c: In function 'update_hook_callback': - ezsqlite_stubs.c:139:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 139 | value *v = caml_named_value("update hook"); - | ^~~~~~~~~~~~~~~~ - ezsqlite_stubs.c: In function 'auto_extension_callback': - ezsqlite_stubs.c:148:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 148 | value *v = caml_named_value("auto extension"); - | ^~~~~~~~~~~~~~~~ - ezsqlite_stubs.c: In function '_ezsqlite_column_text': - /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)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ezsqlite_stubs.c:292:16: note: in expansion of macro 'String_val' - 292 | memcpy(String_val(s), txt, len); - | ^~~~~~~~~~ - /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, - | ~~~~~~~~~~~~~~~~~^~~~~~ - ezsqlite_stubs.c: In function '_ezsqlite_column_blob': - /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)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ezsqlite_stubs.c:304:16: note: in expansion of macro 'String_val' - 304 | memcpy(String_val(s), blob, len); - | ^~~~~~~~~~ - /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, - | ~~~~~~~~~~~~~~~~~^~~~~~ - ezsqlite_stubs.c: In function '_ezsqlite_blob_read': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 2 of 'sqlite3_blob_read' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ezsqlite_stubs.c:13:25: note: in definition of macro 'WRAP' - 13 | #define WRAP(x) do{if ((x) != SQLITE_OK){\ - | ^ - ezsqlite_stubs.c:433:50: note: in expansion of macro 'String_val' - 433 | WRAP(sqlite3_blob_read ((sqlite3_blob*)blob, String_val(s), Int_val(n), Int_val(offs))); - | ^~~~~~~~~~ - In file included from ezsqlite_stubs.c:1: - sqlite3.h:6339:56: note: expected 'void *' but argument is of type 'const char *' - 6339 | SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset); - | ~~~~~~^ - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 2 of 'sqlite3_blob_read' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ezsqlite_stubs.c:14:19: note: in definition of macro 'WRAP' - 14 | sqlite3_error(x);\ - | ^ - ezsqlite_stubs.c:433:50: note: in expansion of macro 'String_val' - 433 | WRAP(sqlite3_blob_read ((sqlite3_blob*)blob, String_val(s), Int_val(n), Int_val(offs))); - | ^~~~~~~~~~ - sqlite3.h:6339:56: note: expected 'void *' but argument is of type 'const char *' - 6339 | SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset); - | ~~~~~~^ - (cd _build/default/lib && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/cstruct -I /home/opam/.opam/default/lib/hex -I /home/opam/.opam/default/lib/ocaml/str -o sqlite3.o -c sqlite3.c) - sqlite3.c: In function 'sqlite3SelectNew': - sqlite3.c:115936:10: warning: function may return address of local variable [-Wreturn-local-addr] - 115936 | return pNew; - | ^~~~ - sqlite3.c:115896:10: note: declared here - 115896 | Select standin; - | ^~~~~~~ - sqlite3.c: In function 'sqlite3VdbeExpandSql': - sqlite3.c:77897:10: warning: function may return address of local variable [-Wreturn-local-addr] - 77897 | return sqlite3StrAccumFinish(&out); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ - sqlite3.c:77793:8: note: declared here - 77793 | char zBase[100]; /* Initial working space */ - | ^~~~~ - sqlite3.c:77897:10: warning: function may return address of local variable [-Wreturn-local-addr] - 77897 | return sqlite3StrAccumFinish(&out); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ - sqlite3.c:77793:8: note: declared here - 77793 | char zBase[100]; /* Initial working space */ - | ^~~~~ - sqlite3.c:77793:8: note: declared here - sqlite3.c:77793:8: note: declared here - sqlite3.c:77793:8: note: declared here -> compiled ezsqlite.0.4.2 -> installed ezsqlite.0.4.2