Since there are deprecated APIs, make sure that users notice they are deprecated in more prominent ways than done so far: - using deprecated C functions now warns by default - it is possible to use the C library making sure no deprecated function is ever used - Python/Ruby/Perl scripts now get warning messages (configured according to their own systems) when deprecated functions are used
The Java binding already emits warnings since libguestfs 1.29.25 (85b6b5e589bea56046b85a5b0143a364e20dacd1). Pino Toscano (7): tests: switch last-errno away from deprecated APIs lib: enable deprecation warnings by default build: stop using GUESTFS_WARN_DEPRECATED lib: introduce GUESTFS_NO_DEPRECATED python: show warnings for deprecated functions ruby: show warnings for deprecated functions perl: show warnings for deprecated functions align/Makefile.am | 2 +- cat/Makefile.am | 10 +++++----- common/edit/Makefile.am | 2 +- common/options/Makefile.am | 2 +- common/parallel/Makefile.am | 2 +- common/progress/Makefile.am | 2 +- common/structs/Makefile.am | 2 +- common/utils/Makefile.am | 2 +- common/visit/Makefile.am | 2 +- common/windows/Makefile.am | 2 +- df/Makefile.am | 2 +- diff/Makefile.am | 2 +- edit/Makefile.am | 2 +- examples/Makefile.am | 17 ++++++++--------- fish/Makefile.am | 2 +- format/Makefile.am | 2 +- fuse/Makefile.am | 3 ++- generator/GObject.ml | 4 ++++ generator/OCaml.ml | 4 ++++ generator/c.ml | 20 +++++++++++++++++--- generator/erlang.ml | 4 ++++ generator/fish.ml | 3 ++- generator/golang.ml | 2 +- generator/java.ml | 4 ++++ generator/lua.ml | 4 ++++ generator/perl.ml | 16 +++++++++++++++- generator/php.ml | 4 ++++ generator/python.ml | 16 ++++++++++++++++ generator/ruby.ml | 14 ++++++++++++++ generator/tests_c_api.ml | 4 ++++ inspector/Makefile.am | 2 +- lib/Makefile.am | 1 - make-fs/Makefile.am | 2 +- rescue/Makefile.am | 2 +- test-tool/Makefile.am | 2 +- tests/c-api/test-last-errno.c | 4 ++-- tests/c-api/tests-main.c | 5 ----- tests/mount-local/Makefile.am | 2 +- tests/mountable/Makefile.am | 2 +- tests/parallel/Makefile.am | 2 +- tests/regressions/Makefile.am | 2 ++ 41 files changed, 133 insertions(+), 50 deletions(-) -- 2.20.1 _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
