summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-24 11:39:42 +0200
committerJim Meyering <meyering@redhat.com>2009-08-27 13:23:52 +0200
commite933691fd1c1a5543c05fcd209ce57daf6cac4f7 (patch)
tree06e57cf1edf9cb7f0e26107129bf522174a978cd
parent4125126085bd81bf96efc2cdbdec0f5596c6c9e8 (diff)
downloadlibguestfs-e933691fd1c1a5543c05fcd209ce57daf6cac4f7.tar.gz
libguestfs-e933691fd1c1a5543c05fcd209ce57daf6cac4f7.tar.xz
libguestfs-e933691fd1c1a5543c05fcd209ce57daf6cac4f7.zip
build: enable gcc warnings in capitests/ and ocaml/
* capitests/Makefile.am: Use $(WARN_CFLAGS) and $(WERROR_CFLAGS). * ocaml/Makefile.am:: Likewise.
-rw-r--r--capitests/Makefile.am3
-rw-r--r--ocaml/Makefile.am3
2 files changed, 4 insertions, 2 deletions
diff --git a/capitests/Makefile.am b/capitests/Makefile.am
index 361c6a35..3b80c0e2 100644
--- a/capitests/Makefile.am
+++ b/capitests/Makefile.am
@@ -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?
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am
index d65ebaaf..462404c1 100644
--- a/ocaml/Makefile.am
+++ b/ocaml/Makefile.am
@@ -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