[go: up one dir, main page]

Dep: update to ctypes 0.18.0

Context

Remove warnings,

         gcc src/lib_sapling/rustzcash_ctypes_c_stubs.o
In file included from rustzcash_ctypes_c_stubs.c:9:
rustzcash_ctypes_c_stubs.c: In function '_1_librustzcash_init_zksnark_params':
./tezos/_opam/lib/ctypes/ctypes_cstubs_internals.h:20:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   (String_val(Field(s, 1)) + Long_val(Field(s, 0)))
   ^
rustzcash_ctypes_c_stubs.c:16:16: note: in expansion of macro 'CTYPES_PTR_OF_OCAML_STRING'
    char* x14 = CTYPES_PTR_OF_OCAML_STRING(x7);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
./tezos/_opam/lib/ctypes/ctypes_cstubs_internals.h:20:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   (String_val(Field(s, 1)) + Long_val(Field(s, 0)))
   ^
rustzcash_ctypes_c_stubs.c:19:16: note: in expansion of macro 'CTYPES_PTR_OF_OCAML_STRING'
    char* x19 = CTYPES_PTR_OF_OCAML_STRING(x4);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
./tezos/_opam/lib/ctypes/ctypes_cstubs_internals.h:20:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   (String_val(Field(s, 1)) + Long_val(Field(s, 0)))
   ^
rustzcash_ctypes_c_stubs.c:22:16: note: in expansion of macro 'CTYPES_PTR_OF_OCAML_STRING'
    char* x24 = CTYPES_PTR_OF_OCAML_STRING(x1);

Depends on opam-repository!157 (merged), built on top of !2709 (closed) Changes have been made in ocaml-bls12-381.

Nothing critical in the release: https://github.com/ocamllabs/ocaml-ctypes/blob/0.18.0/CHANGES.md

Manually testing the MR

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, the Development Version section of CHANGES.md for everything else).
  • Select suitable reviewers using the Reviewers field below.
Edited by Danny Willems

Merge request reports

Loading