[java-atk-wrapper] Build: include--enable-compile-warning option



commit 3a467abf4260229cc61fb1b4e284262c5bd03bcf
Author: Magdalen Berns <m berns thismagpie com>
Date:   Sun Jul 19 13:34:43 2015 +0100

    Build: include--enable-compile-warning option
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=752590

 configure.ac        |   10 ++++++++++
 jni/src/Makefile.am |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bd47f12..3225882 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,6 +129,15 @@ else
 fi
 AC_SUBST(JAW_CFLAGS)
 
+GNOME_COMPILE_WARNINGS([error])
+case "$WARN_CFLAGS" in
+    *-Werror*)
+        WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations"
+        ;;
+esac
+AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
+AC_SUBST(AM_CFLAGS)
+
 CHECK_JNI
 
 AC_MSG_CHECKING([JDK version])
@@ -179,4 +188,5 @@ Build configuration:
        JDK src:                                ${JDK_SRC}
        Host OS:                                ${host_os}
        JNI includes:                           ${JNI_INCLUDES}
+       Warn flags:                             ${WARN_CFLAGS}
 "
diff --git a/jni/src/Makefile.am b/jni/src/Makefile.am
index e755fb1..b8d7da9 100644
--- a/jni/src/Makefile.am
+++ b/jni/src/Makefile.am
@@ -26,6 +26,7 @@ noinst_HEADERS = AtkWrapper.h \
 
 libatk_wrapper_la_CFLAGS = $(JNI_INCLUDES)\
                            $(JAW_CFLAGS) \
+                           $(AM_CFLAGS) \
                            $(PLATFORM_CFLAGS)
 
 libatk_wrapper_la_CPPFLAGS = $(JNI_INCLUDES)\


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]