summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_Utils.cpp
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-10 18:19:40 -0800
committerAndreas Gampe <agampe@google.com>2014-11-10 18:19:40 -0800
commit5a15d0d31b877ef512b3379eac033c6bb041c86a (patch)
treec4d59aa66b8e486664f98e117184e4c424dc8d9e /media/jni/android_media_Utils.cpp
parenta31318620bce4e00e80188ee2778b7799cbdf0dc (diff)
downloadframeworks_base-5a15d0d31b877ef512b3379eac033c6bb041c86a.zip
frameworks_base-5a15d0d31b877ef512b3379eac033c6bb041c86a.tar.gz
frameworks_base-5a15d0d31b877ef512b3379eac033c6bb041c86a.tar.bz2
Frameworks/base: Wall Werror in media/jni
Turn on -Wall -Werror in media/jni. Fix warnings. Change-Id: I9da54ad379d8172ee535b52ee2b0637a2533f4e3
Diffstat (limited to 'media/jni/android_media_Utils.cpp')
-rw-r--r--media/jni/android_media_Utils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/media/jni/android_media_Utils.cpp b/media/jni/android_media_Utils.cpp
index 54c5e9b..ea33a2f 100644
--- a/media/jni/android_media_Utils.cpp
+++ b/media/jni/android_media_Utils.cpp
@@ -136,8 +136,7 @@ static void SetMapInt32(
jstring keyObj = env->NewStringUTF(key);
jobject valueObj = makeIntegerObject(env, value);
- jobject res = env->CallObjectMethod(
- hashMapObj, hashMapPutID, keyObj, valueObj);
+ env->CallObjectMethod(hashMapObj, hashMapPutID, keyObj, valueObj);
env->DeleteLocalRef(valueObj); valueObj = NULL;
env->DeleteLocalRef(keyObj); keyObj = NULL;
@@ -266,8 +265,7 @@ status_t ConvertMessageToMap(
if (valueObj != NULL) {
jstring keyObj = env->NewStringUTF(key);
- jobject res = env->CallObjectMethod(
- hashMap, hashMapPutID, keyObj, valueObj);
+ env->CallObjectMethod(hashMap, hashMapPutID, keyObj, valueObj);
env->DeleteLocalRef(keyObj); keyObj = NULL;
env->DeleteLocalRef(valueObj); valueObj = NULL;