summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-05-17 15:04:56 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-05-17 17:05:12 +0100
commit34acb80a28d1b48e734883a32f7f3344dc216ec0 (patch)
treeedb50a9af2c1fc2d590c38fe1a644a11068806ef
parent8c0aca8d9280fb87027826fe89d70cc2701e7f8b (diff)
downloadlibguestfs-34acb80a28d1b48e734883a32f7f3344dc216ec0.tar.gz
libguestfs-34acb80a28d1b48e734883a32f7f3344dc216ec0.tar.xz
libguestfs-34acb80a28d1b48e734883a32f7f3344dc216ec0.zip
Enable deprecation warnings on all C programs.
-rw-r--r--cat/Makefile.am3
-rw-r--r--df/Makefile.am1
-rw-r--r--edit/Makefile.am1
-rw-r--r--examples/Makefile.am3
-rw-r--r--fish/Makefile.am1
-rw-r--r--fuse/Makefile.am1
-rw-r--r--generator/generator_fish.ml3
-rw-r--r--inspector/Makefile.am1
-rw-r--r--rescue/Makefile.am1
-rw-r--r--src/Makefile.am1
-rw-r--r--test-tool/Makefile.am1
11 files changed, 17 insertions, 0 deletions
diff --git a/cat/Makefile.am b/cat/Makefile.am
index a049a619..bf1d57ca 100644
--- a/cat/Makefile.am
+++ b/cat/Makefile.am
@@ -42,6 +42,7 @@ virt_cat_SOURCES = \
virt-cat.c
virt_cat_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
@@ -59,6 +60,7 @@ virt_filesystems_SOURCES = \
virt-filesystems.c
virt_filesystems_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
@@ -76,6 +78,7 @@ virt_ls_SOURCES = \
virt-ls.c
virt_ls_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
diff --git a/df/Makefile.am b/df/Makefile.am
index 69c61401..17117985 100644
--- a/df/Makefile.am
+++ b/df/Makefile.am
@@ -43,6 +43,7 @@ virt_df_SOURCES = \
output.c
virt_df_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
diff --git a/edit/Makefile.am b/edit/Makefile.am
index 5195b514..62b5376a 100644
--- a/edit/Makefile.am
+++ b/edit/Makefile.am
@@ -38,6 +38,7 @@ virt_edit_SOURCES = \
virt-edit.c
virt_edit_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 00a52676..952d6026 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -28,6 +28,7 @@ endif
create_disk_SOURCES = create_disk.c
create_disk_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
$(WARN_CFLAGS) $(WERROR_CFLAGS)
create_disk_LDADD = \
@@ -35,6 +36,7 @@ create_disk_LDADD = \
inspect_vm_SOURCES = inspect_vm.c
inspect_vm_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
$(WARN_CFLAGS) $(WERROR_CFLAGS)
inspect_vm_LDADD = \
@@ -42,6 +44,7 @@ inspect_vm_LDADD = \
virt_dhcp_address_SOURCES = virt-dhcp-address.c
virt_dhcp_address_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
$(HIVEX_CFLAGS)
diff --git a/fish/Makefile.am b/fish/Makefile.am
index 87f937c6..69540dd3 100644
--- a/fish/Makefile.am
+++ b/fish/Makefile.am
@@ -115,6 +115,7 @@ cmds_gperf.c: cmds_gperf.gperf
mv $@-t $@
guestfish_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish -I$(top_builddir)/fish \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
diff --git a/fuse/Makefile.am b/fuse/Makefile.am
index c860f24a..b7558eeb 100644
--- a/fuse/Makefile.am
+++ b/fuse/Makefile.am
@@ -43,6 +43,7 @@ guestmount_SOURCES = \
guestmount.h
guestmount_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
diff --git a/generator/generator_fish.ml b/generator/generator_fish.ml
index 532639da..cdf91718 100644
--- a/generator/generator_fish.ml
+++ b/generator/generator_fish.ml
@@ -48,6 +48,9 @@ let generate_fish_cmds () =
pr "#include <config.h>\n";
pr "\n";
+ pr "/* It is safe to call deprecated functions from this file. */\n";
+ pr "#undef GUESTFS_WARN_DEPRECATED\n";
+ pr "\n";
pr "#include <stdio.h>\n";
pr "#include <stdlib.h>\n";
pr "#include <string.h>\n";
diff --git a/inspector/Makefile.am b/inspector/Makefile.am
index 8024f98a..5c48724d 100644
--- a/inspector/Makefile.am
+++ b/inspector/Makefile.am
@@ -59,6 +59,7 @@ virt_inspector_SOURCES = \
virt-inspector.c
virt_inspector_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
diff --git a/rescue/Makefile.am b/rescue/Makefile.am
index 0032a232..d3783aef 100644
--- a/rescue/Makefile.am
+++ b/rescue/Makefile.am
@@ -37,6 +37,7 @@ virt_rescue_SOURCES = \
virt-rescue.c
virt_rescue_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(top_srcdir)/fish \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
diff --git a/src/Makefile.am b/src/Makefile.am
index 32ac7df3..c2e0c6e5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -151,6 +151,7 @@ libguestfs_la_LIBADD += liberrnostring.la libprotocol.la
libguestfs_la_CFLAGS = \
-DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' \
+ -DGUESTFS_WARN_DEPRECATED=1 \
$(HIVEX_CFLAGS) $(AUGEAS_CFLAGS) $(PCRE_CFLAGS) \
$(LIBVIRT_CFLAGS) $(LIBXML2_CFLAGS) \
$(WARN_CFLAGS) $(WERROR_CFLAGS)
diff --git a/test-tool/Makefile.am b/test-tool/Makefile.am
index 1ed08208..9fa40332 100644
--- a/test-tool/Makefile.am
+++ b/test-tool/Makefile.am
@@ -26,6 +26,7 @@ man_MANS = libguestfs-test-tool.1
libguestfs_test_tool_SOURCES = test-tool.c
libguestfs_test_tool_CFLAGS = \
+ -DGUESTFS_WARN_DEPRECATED=1 \
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/src -I$(top_builddir)/src \
$(WARN_CFLAGS) $(WERROR_CFLAGS)