summaryrefslogtreecommitdiffstats
path: root/JavaLibrary.mk
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-12-14 09:48:52 -0800
committerElliott Hughes <enh@google.com>2010-12-14 09:48:52 -0800
commit48d0b3ffb83c2d9f08d9f4debb09e9798cf67c6a (patch)
treeaa717bda9d81917dae92ec92a85c61e2265ee73e /JavaLibrary.mk
parent0234a78c135aeb3f5682a16a69a19a8964dfc0c2 (diff)
downloadlibcore-48d0b3ffb83c2d9f08d9f4debb09e9798cf67c6a.zip
libcore-48d0b3ffb83c2d9f08d9f4debb09e9798cf67c6a.tar.gz
libcore-48d0b3ffb83c2d9f08d9f4debb09e9798cf67c6a.tar.bz2
Building libcore in master is spam city. Fix that.
Actually, this is more of a workaround. The real fix would be: 1. work out why @SuppressWarnings("unchecked") isn't working. 2. move the XML crap (which we're not maintaining, and where we don't fix warnings) out into external/. 3. uncomment the commented-out line in this patch. (I've fixed our real non-"unchecked" warnings in earlier patches.) Change-Id: I5a2dcb071eef5b46c8f166f9492d56cfdb5c6fa5
Diffstat (limited to 'JavaLibrary.mk')
-rw-r--r--JavaLibrary.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/JavaLibrary.mk b/JavaLibrary.mk
index 68f93d2..e954f99 100644
--- a/JavaLibrary.mk
+++ b/JavaLibrary.mk
@@ -59,6 +59,9 @@ ifeq ($(EMMA_INSTRUMENT),true)
core_resource_dirs += ../external/emma/core/res ../external/emma/pregenerated/res
endif
+local_javac_flags=-encoding UTF-8
+#local_javac_flags+=-Xlint:all -Xlint:-serial,-deprecation,-unchecked
+local_javac_flags+=-Xmaxwarns 9999999
#
# Build for the target (device).
@@ -72,7 +75,7 @@ LOCAL_SRC_FILES := $(core_src_files)
LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
LOCAL_NO_STANDARD_LIBRARIES := true
-LOCAL_JAVACFLAGS := -encoding UTF-8
+LOCAL_JAVACFLAGS := $(local_javac_flags)
LOCAL_DX_FLAGS := --core-library
LOCAL_NO_EMMA_INSTRUMENT := true
@@ -264,7 +267,7 @@ ifeq ($(WITH_HOST_DALVIK),true)
LOCAL_JAVA_RESOURCE_DIRS := $(core_resource_dirs)
LOCAL_NO_STANDARD_LIBRARIES := true
- LOCAL_JAVACFLAGS := -encoding UTF-8
+ LOCAL_JAVACFLAGS := $(local_javac_flags)
LOCAL_DX_FLAGS := --core-library
LOCAL_NO_EMMA_INSTRUMENT := true