build: enable gcc warnings in capitests/ and ocaml/
authorJim Meyering <meyering@redhat.com>
Mon, 24 Aug 2009 09:39:42 +0000 (11:39 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 27 Aug 2009 11:23:52 +0000 (13:23 +0200)
* capitests/Makefile.am: Use $(WARN_CFLAGS) and $(WERROR_CFLAGS).
* ocaml/Makefile.am:: Likewise.

capitests/Makefile.am
ocaml/Makefile.am

index 361c6a3..3b80c0e 100644 (file)
@@ -24,7 +24,8 @@ EXTRA_DIST = \
 check_PROGRAMS = tests test-command
 
 tests_SOURCES = tests.c
-tests_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -Wall
+tests_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src \
+  $(WARN_CFLAGS) $(WERROR_CFLAGS)
 tests_LDADD = $(top_builddir)/src/libguestfs.la
 
 # Old version of e2fsprogs which didn't support UUIDs?
index d65ebaa..462404c 100644 (file)
@@ -29,7 +29,8 @@ CLEANFILES = *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so
 CLEANFILES += t/*.cmi t/*.cmo t/*.cmx t/*.o t/*.a t/*.so
 
 AM_CPPFLAGS = -I$(top_builddir) -I$(OCAMLLIB) -I$(top_srcdir)/ocaml \
-  -I$(top_srcdir)/src -I$(top_builddir)/src
+  -I$(top_srcdir)/src -I$(top_builddir)/src \
+  $(WARN_CFLAGS) $(WERROR_CFLAGS)
 
 if HAVE_OCAML