summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-07-19 14:32:45 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-07-19 14:32:45 +0100
commitc79ba93f7e53f6a62b5793ba35f1c3b13527eef6 (patch)
tree529239073b04326b91e015625d63cbc9f16ed186 /java
parentd8140d5689e49d926e5e1a53ec685088dec19a6d (diff)
downloadlibguestfs-c79ba93f7e53f6a62b5793ba35f1c3b13527eef6.tar.gz
libguestfs-c79ba93f7e53f6a62b5793ba35f1c3b13527eef6.tar.xz
libguestfs-c79ba93f7e53f6a62b5793ba35f1c3b13527eef6.zip
java: Enable warnings when compiling C bindings code.
And fix the code so it doesn't generate warnings.
Diffstat (limited to 'java')
-rw-r--r--java/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/Makefile.am b/java/Makefile.am
index 3a64b0eb..3ae11237 100644
--- a/java/Makefile.am
+++ b/java/Makefile.am
@@ -73,7 +73,10 @@ libguestfs_jni_la_SOURCES = \
libguestfs_jni_la_LIBADD = $(top_builddir)/src/libguestfs.la
libguestfs_jni_la_LDFLAGS = -version-info $(JNI_VERSION_INFO)
-libguestfs_jni_la_CFLAGS = -Wall -I$(top_srcdir)/src -I$(top_builddir)/src $(JNI_CFLAGS)
+libguestfs_jni_la_CFLAGS = \
+ $(WARN_CFLAGS) $(WERROR_CFLAGS) \
+ -I$(top_srcdir)/src -I$(top_builddir)/src \
+ $(JNI_CFLAGS)
BUILT_SOURCES = com_redhat_et_libguestfs_GuestFS.h