mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lib: introduce GUESTFS_NO_DEPRECATED
Add a simple way to do not even provide prototypes of deprecated functions in the C library: this way, users (like our tools) can build against the library making sure to not use any deprecated function, not even when compiler deprecation warnings are disabled. Add it to the majority of our tools/internal libraries, and make sure that it is not defined when building the API bridges of our bindings.
This commit is contained in:
@@ -333,6 +333,7 @@ and generate_erlang_actions actions () =
|
||||
|
||||
/* It is safe to call deprecated functions from this file. */
|
||||
#define GUESTFS_NO_WARN_DEPRECATED
|
||||
#undef GUESTFS_NO_DEPRECATED
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user