[libvirt] [PATCH 5/5] examples: enable all compiler warnings

Daniel P. Berrangé berrange at redhat.com
Tue Apr 2 10:02:11 UTC 2019


Now that all the examples are warning free, keep it that way by enabling
all the normal compiler warning flags.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 examples/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/Makefile.am b/examples/Makefile.am
index b590a148ce..ee7d3e6b2c 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -28,7 +28,8 @@ EXTRA_DIST = \
 
 
 AM_CPPFLAGS = \
-	-I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)
+	-I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir) \
+	$(WARN_CFLAGS)
 LDADD = $(STATIC_BINARIES) $(WARN_CFLAGS) \
 	$(top_builddir)/src/libvirt.la \
 	$(top_builddir)/src/libvirt-admin.la
-- 
2.20.1




More information about the libvir-list mailing list