summaryrefslogtreecommitdiffstats
path: root/native/graphics/jni
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-10 17:13:06 -0800
committerAndreas Gampe <agampe@google.com>2014-11-10 17:14:31 -0800
commitcad87d78da79c3d2ac83e1dce6ee2a9d2f6d64e5 (patch)
tree55fb5cd78661bbc54875a7273605aba16c55c729 /native/graphics/jni
parenta31318620bce4e00e80188ee2778b7799cbdf0dc (diff)
downloadframeworks_base-cad87d78da79c3d2ac83e1dce6ee2a9d2f6d64e5.zip
frameworks_base-cad87d78da79c3d2ac83e1dce6ee2a9d2f6d64e5.tar.gz
frameworks_base-cad87d78da79c3d2ac83e1dce6ee2a9d2f6d64e5.tar.bz2
Frameworks/base: Wall Werror in native/graphics
Turn on -Wall -Werror in native/graphics. Mask skia warnings. Change-Id: Ia671e91348296ace84d9a24b3c6c025fa889bead
Diffstat (limited to 'native/graphics/jni')
-rw-r--r--native/graphics/jni/Android.mk12
-rw-r--r--native/graphics/jni/bitmap.cpp4
2 files changed, 11 insertions, 5 deletions
diff --git a/native/graphics/jni/Android.mk b/native/graphics/jni/Android.mk
index 3154030..88954f0 100644
--- a/native/graphics/jni/Android.mk
+++ b/native/graphics/jni/Android.mk
@@ -6,27 +6,29 @@ include $(CLEAR_VARS)
# setup for skia optimizations
#
ifneq ($(ARCH_ARM_HAVE_VFP),true)
- LOCAL_CFLAGS += -DSK_SOFTWARE_FLOAT
+ LOCAL_CFLAGS += -DSK_SOFTWARE_FLOAT
endif
ifeq ($(ARCH_ARM_HAVE_NEON),true)
- LOCAL_CFLAGS += -D__ARM_HAVE_NEON
+ LOCAL_CFLAGS += -D__ARM_HAVE_NEON
endif
# our source files
#
LOCAL_SRC_FILES:= \
- bitmap.cpp
+ bitmap.cpp
LOCAL_SHARED_LIBRARIES := \
libandroid_runtime \
libskia
LOCAL_C_INCLUDES += \
- frameworks/base/native/include \
- frameworks/base/core/jni/android/graphics
+ frameworks/base/native/include \
+ frameworks/base/core/jni/android/graphics
LOCAL_MODULE:= libjnigraphics
+LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
+
include $(BUILD_SHARED_LIBRARY)
diff --git a/native/graphics/jni/bitmap.cpp b/native/graphics/jni/bitmap.cpp
index df0751d..ea32edc 100644
--- a/native/graphics/jni/bitmap.cpp
+++ b/native/graphics/jni/bitmap.cpp
@@ -15,7 +15,11 @@
*/
#include <android/bitmap.h>
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <GraphicsJNI.h>
+#pragma GCC diagnostic pop
int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
AndroidBitmapInfo* info) {