mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
erlang: Avoid deprecation warnings.
According to the Erlang website: The old legacy erl_interface library (functions with prefix erl_) is deprecated as of OTP 22, and will be removed in OTP 23. This does not apply to the ei library. Reasonably new gcc compilers will issue deprecation warnings. In order to disable these warnings, define the macro EI_NO_DEPR_WARN. That's a shame and probably means we will have to drop the Erlang bindings soon unless someone ports them to this new API (stable APIs FTW people!). In the meantime add the flag to prevent warn-errors about deprecation.
This commit is contained in:
@@ -83,7 +83,8 @@ erl_guestfs_CPPFLAGS = \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
|
||||
-I$(ERLANG_LIB_DIR_erl_interface)/include
|
||||
-I$(ERLANG_LIB_DIR_erl_interface)/include \
|
||||
-DEI_NO_DEPR_WARN
|
||||
|
||||
erl_guestfs_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user