From 48d0b3ffb83c2d9f08d9f4debb09e9798cf67c6a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 14 Dec 2010 09:48:52 -0800 Subject: 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 --- JavaLibrary.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'JavaLibrary.mk') 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 -- cgit v1.1