google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
6.92k stars 437 forks source link

deprecated declarations in bindings #1032

Closed jcpunk closed 2 months ago

jcpunk commented 1 year ago

Just making sure someone saw this warning

/builddir/build/BUILD/jsonnet-0.19.1/core/vm.cpp: In member function 'const c4::yml::Tree {anonymous}::Interpreter::treeFromString(const std::string&)':
/builddir/build/BUILD/jsonnet-0.19.1/core/vm.cpp:1638:27: warning: 'c4::yml::Tree c4::yml::parse(c4::csubstr)' is deprecated: use parse_in_arena() instead [-Wdeprecated-declarations]
 1638 |         return ryml::parse(c4::to_csubstr(s));
      |                ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c4/yml/yml.hpp:7,
                 from /usr/include/ryml.hpp:4,
                 from /builddir/build/BUILD/jsonnet-0.19.1/core/vm.cpp:30:
/usr/include/c4/yml/parse.hpp:648:61: note: declared here
  648 | RYML_DEPRECATED("use parse_in_arena() instead") inline Tree parse(                  csubstr yaml                         ) { Parser np; return np.parse_in_arena({}      , yaml); } //!< parse a read-only YAML source buffer, copying it first to the tree's source arena.
python/_jsonnet.c: In function ‘cpython_native_callback’:
python/_jsonnet.c:189:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
  189 |     result = PyEval_CallObject(ctx->callback, arglist);
      |     ^~~~~~
In file included from /usr/include/python3.11/Python.h:95,
                 from python/_jsonnet.c:20:
/usr/include/python3.11/ceval.h:27:43: note: declared here
   27 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
python/_jsonnet.c: In function ‘cpython_import_callback’:
python/_jsonnet.c:229:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
  229 |     result = PyEval_CallObject(ctx->callback, arglist);
      |     ^~~~~~
/usr/include/python3.11/ceval.h:27:43: note: declared here
   27 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
creating build/lib.linux-x86_64-cpython-311