OSDN Git Service

Fix GCC build
authorJohn Reck <jreck@google.com>
Wed, 4 Nov 2015 15:39:44 +0000 (07:39 -0800)
committerJohn Reck <jreck@google.com>
Wed, 4 Nov 2015 15:39:44 +0000 (07:39 -0800)
Change-Id: I990993b8b751bdaf41ce4db1aa7e28823f296777

libs/hwui/Android.mk

index d94c91d..aefff0c 100644 (file)
@@ -87,6 +87,10 @@ hwui_cflags := \
     -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" \
     -Wall -Wno-unused-parameter -Wunreachable-code -Werror
 
+# GCC false-positives on this warning, and since we -Werror that's
+# a problem
+hwui_cflags += -Wno-free-nonheap-object
+
 ifeq (true, $(HWUI_NEW_OPS))
     hwui_src_files += \
         BakedOpRenderer.cpp \