mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
build: stop using GUESTFS_WARN_DEPRECATED
This is no more used now, as compiler deprecation warnings are triggered by default.
This commit is contained in:
@@ -29,7 +29,6 @@ virt_alignment_scan_SOURCES = \
|
||||
scan.c
|
||||
|
||||
virt_alignment_scan_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -36,7 +36,6 @@ virt_cat_SOURCES = \
|
||||
cat.c
|
||||
|
||||
virt_cat_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
@@ -64,7 +63,6 @@ virt_filesystems_SOURCES = \
|
||||
filesystems.c
|
||||
|
||||
virt_filesystems_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
@@ -92,7 +90,6 @@ virt_log_SOURCES = \
|
||||
log.c
|
||||
|
||||
virt_log_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
@@ -119,7 +116,6 @@ virt_ls_SOURCES = \
|
||||
ls.c
|
||||
|
||||
virt_ls_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
@@ -148,7 +144,6 @@ virt_tail_SOURCES = \
|
||||
tail.c
|
||||
|
||||
virt_tail_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
|
||||
@@ -25,7 +25,6 @@ libedit_la_SOURCES = \
|
||||
file-edit.c \
|
||||
file-edit.h
|
||||
libedit_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
libedit_la_CFLAGS = \
|
||||
|
||||
@@ -34,7 +34,6 @@ liboptions_la_SOURCES = \
|
||||
uri.h \
|
||||
uri.c
|
||||
liboptions_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib
|
||||
|
||||
@@ -30,7 +30,6 @@ libparallel_la_SOURCES = \
|
||||
parallel.c \
|
||||
parallel.h
|
||||
libparallel_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/common/options -I$(top_builddir)/common/options \
|
||||
|
||||
@@ -25,7 +25,6 @@ libprogress_la_SOURCES = \
|
||||
progress.c \
|
||||
progress.h
|
||||
libprogress_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
libprogress_la_CFLAGS = \
|
||||
|
||||
@@ -35,7 +35,6 @@ libstructs_la_SOURCES = \
|
||||
../../lib/guestfs.h \
|
||||
$(BUILT_SOURCES)
|
||||
libstructs_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
|
||||
@@ -29,7 +29,6 @@ libutils_la_SOURCES = \
|
||||
libxml2-writer-macros.h \
|
||||
utils.c
|
||||
libutils_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
|
||||
@@ -23,7 +23,6 @@ libvisit_la_SOURCES = \
|
||||
visit.c \
|
||||
visit.h
|
||||
libvisit_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -25,7 +25,6 @@ libwindows_la_SOURCES = \
|
||||
windows.c \
|
||||
windows.h
|
||||
libwindows_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib
|
||||
|
||||
@@ -33,7 +33,6 @@ virt_df_SOURCES = \
|
||||
output.c
|
||||
|
||||
virt_df_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
|
||||
@@ -28,7 +28,6 @@ virt_diff_SOURCES = \
|
||||
diff.c
|
||||
|
||||
virt_diff_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -28,7 +28,6 @@ virt_edit_SOURCES = \
|
||||
edit.c
|
||||
|
||||
virt_edit_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -43,7 +43,6 @@ endif
|
||||
if HAVE_LIBVIRT
|
||||
copy_over_SOURCES = copy-over.c
|
||||
copy_over_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
copy_over_CFLAGS = \
|
||||
$(LIBVIRT_CFLAGS) \
|
||||
@@ -55,7 +54,6 @@ copy_over_LDADD = \
|
||||
|
||||
libvirt_auth_SOURCES = libvirt-auth.c
|
||||
libvirt_auth_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
libvirt_auth_CFLAGS = \
|
||||
$(LIBVIRT_CFLAGS) \
|
||||
@@ -68,7 +66,6 @@ endif
|
||||
|
||||
create_disk_SOURCES = create-disk.c
|
||||
create_disk_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
create_disk_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
@@ -77,7 +74,6 @@ create_disk_LDADD = \
|
||||
|
||||
debug_logging_SOURCES = debug-logging.c
|
||||
debug_logging_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
debug_logging_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
@@ -86,7 +82,6 @@ debug_logging_LDADD = \
|
||||
|
||||
display_icon_SOURCES = display-icon.c
|
||||
display_icon_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
display_icon_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
@@ -95,7 +90,6 @@ display_icon_LDADD = \
|
||||
|
||||
inspect_vm_SOURCES = inspect-vm.c
|
||||
inspect_vm_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
inspect_vm_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
@@ -105,10 +99,8 @@ inspect_vm_LDADD = \
|
||||
if HAVE_FUSE
|
||||
mount_local_SOURCES = mount-local.c
|
||||
mount_local_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
mount_local_CFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
$(FUSE_CFLAGS) \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
@@ -120,7 +112,6 @@ endif
|
||||
if HAVE_HIVEX
|
||||
virt_dhcp_address_SOURCES = virt-dhcp-address.c
|
||||
virt_dhcp_address_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
virt_dhcp_address_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
|
||||
@@ -123,7 +123,6 @@ cmds-gperf.c: cmds-gperf.gperf
|
||||
mv $@-t $@
|
||||
|
||||
guestfish_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
|
||||
@@ -28,7 +28,6 @@ virt_format_SOURCES = \
|
||||
format.c
|
||||
|
||||
virt_format_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -36,7 +36,6 @@ guestmount_SOURCES = \
|
||||
guestmount.c
|
||||
|
||||
guestmount_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -49,7 +49,6 @@ virt_inspector_SOURCES = \
|
||||
inspector.c
|
||||
|
||||
virt_inspector_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
|
||||
@@ -126,7 +126,6 @@ libguestfs_la_SOURCES = \
|
||||
libguestfs.syms
|
||||
|
||||
libguestfs_la_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-I$(top_srcdir)/common/errnostring -I$(top_builddir)/common/errnostring \
|
||||
-I$(top_srcdir)/common/protocol -I$(top_builddir)/common/protocol \
|
||||
|
||||
@@ -28,7 +28,6 @@ virt_make_fs_SOURCES = \
|
||||
make-fs.c
|
||||
|
||||
virt_make_fs_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/common/structs -I$(top_builddir)/common/structs \
|
||||
|
||||
@@ -32,7 +32,6 @@ virt_rescue_SOURCES = \
|
||||
suggest.c
|
||||
|
||||
virt_rescue_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
|
||||
@@ -33,7 +33,6 @@ libguestfs_test_tool_CPPFLAGS = \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/common/options -I$(top_builddir)/common/options \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\"
|
||||
|
||||
libguestfs_test_tool_CFLAGS = \
|
||||
|
||||
@@ -31,11 +31,6 @@
|
||||
|
||||
#include <pcre.h>
|
||||
|
||||
/* Warn about deprecated libguestfs functions, but only in this file,
|
||||
* not in 'tests.c' (because we want to test deprecated functions).
|
||||
*/
|
||||
#define GUESTFS_WARN_DEPRECATED 1
|
||||
|
||||
#include "guestfs.h"
|
||||
#include "guestfs-utils.h"
|
||||
#include "structs-cleanups.h"
|
||||
|
||||
@@ -29,7 +29,6 @@ check_PROGRAMS = $(TESTS)
|
||||
test_parallel_mount_local_SOURCES = \
|
||||
test-parallel-mount-local.c
|
||||
test_parallel_mount_local_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
||||
|
||||
@@ -27,7 +27,6 @@ check_PROGRAMS = test-internal-parse-mountable
|
||||
|
||||
test_internal_parse_mountable_SOURCES = test-internal-parse-mountable.c
|
||||
test_internal_parse_mountable_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-DGUESTFS_PRIVATE=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
|
||||
@@ -26,7 +26,6 @@ check_PROGRAMS = test-parallel
|
||||
|
||||
test_parallel_SOURCES = test-parallel.c
|
||||
test_parallel_CPPFLAGS = \
|
||||
-DGUESTFS_WARN_DEPRECATED=1 \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/common/utils -I$(top_builddir)/common/utils \
|
||||
-I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
|
||||
Reference in New Issue
Block a user