summaryrefslogtreecommitdiffstats
path: root/packages/DefaultContainerService
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-10 20:00:25 -0800
committerAndreas Gampe <agampe@google.com>2014-11-13 15:25:34 -0800
commit423ba098bd6ed9e90fa3f940b58c5c058c6cbee8 (patch)
tree322c55bc949858f36e60ed050747f62e4fdbc5b9 /packages/DefaultContainerService
parent0626ec58243c9dc7f4812a453ef9456b1f7ff1f4 (diff)
downloadframeworks_base-423ba098bd6ed9e90fa3f940b58c5c058c6cbee8.zip
frameworks_base-423ba098bd6ed9e90fa3f940b58c5c058c6cbee8.tar.gz
frameworks_base-423ba098bd6ed9e90fa3f940b58c5c058c6cbee8.tar.bz2
Frameworks/base: Wall Werror in packages
Turn on -Wall -Werror in packages/. Fix warnings. Change-Id: I4ec7256a7df46017e1895575719f2b5aca978bd0
Diffstat (limited to 'packages/DefaultContainerService')
-rw-r--r--packages/DefaultContainerService/jni/Android.mk4
-rw-r--r--packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/DefaultContainerService/jni/Android.mk b/packages/DefaultContainerService/jni/Android.mk
index ef4f699..7808ae1 100644
--- a/packages/DefaultContainerService/jni/Android.mk
+++ b/packages/DefaultContainerService/jni/Android.mk
@@ -18,8 +18,6 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-
-
LOCAL_SRC_FILES := \
com_android_defcontainer_MeasurementUtils.cpp
@@ -37,4 +35,6 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_MODULE := libdefcontainer_jni
LOCAL_MODULE_TAGS := optional
+LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
+
include $(BUILD_SHARED_LIBRARY)
diff --git a/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp b/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp
index 7390bb7..6be4849 100644
--- a/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp
+++ b/packages/DefaultContainerService/jni/com_android_defcontainer_MeasurementUtils.cpp
@@ -29,7 +29,7 @@
namespace android {
-static jlong native_measureDirectory(JNIEnv* env, jobject clazz, jstring directory) {
+static jlong native_measureDirectory(JNIEnv* env, jobject /* clazz */, jstring directory) {
jlong ret = 0L;
const char* path = env->GetStringUTFChars(directory, NULL);
@@ -65,7 +65,7 @@ int register_com_android_defcontainer(JNIEnv *env) {
} // namespace android
-int JNI_OnLoad(JavaVM *jvm, void* reserved) {
+int JNI_OnLoad(JavaVM *jvm, void* /* reserved */) {
JNIEnv *env;
if (jvm->GetEnv((void**)&env, JNI_VERSION_1_6)) {