diff options
author | Mark Salyzyn <salyzyn@google.com> | 2013-11-07 11:16:22 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-01-17 07:51:48 -0800 |
commit | 087f58dd80e3296a53c6e3c74c089e9a0265f3bd (patch) | |
tree | 7fbf6d97ef67074bde869c012d52476641b08689 /core/jni/android_util_EventLog.cpp | |
parent | a739445a633a0b06cd18dae2a2f7682985143207 (diff) | |
download | frameworks_base-087f58dd80e3296a53c6e3c74c089e9a0265f3bd.zip frameworks_base-087f58dd80e3296a53c6e3c74c089e9a0265f3bd.tar.gz frameworks_base-087f58dd80e3296a53c6e3c74c089e9a0265f3bd.tar.bz2 |
jni: Resolve build warnings
Change-Id: I3659193f1ba1ba94561e4684cdb6627880ffc2fa
Author: Mark Salyzyn <salyzyn@google.com>
Diffstat (limited to 'core/jni/android_util_EventLog.cpp')
-rw-r--r-- | core/jni/android_util_EventLog.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/core/jni/android_util_EventLog.cpp b/core/jni/android_util_EventLog.cpp index b7d4423..2593420 100644 --- a/core/jni/android_util_EventLog.cpp +++ b/core/jni/android_util_EventLog.cpp @@ -21,6 +21,8 @@ #include "jni.h" #include "log/logger.h" +#define UNUSED __attribute__((__unused__)) + // The size of the tag number comes out of the payload size. #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t)) @@ -44,7 +46,8 @@ static jclass gStringClass; * In class android.util.EventLog: * static native int writeEvent(int tag, int value) */ -static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, +static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env UNUSED, + jobject clazz UNUSED, jint tag, jint value) { return android_btWriteLog(tag, EVENT_TYPE_INT, &value, sizeof(value)); @@ -54,7 +57,8 @@ static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, * In class android.util.EventLog: * static native int writeEvent(long tag, long value) */ -static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, +static jint android_util_EventLog_writeEvent_Long(JNIEnv* env UNUSED, + jobject clazz UNUSED, jint tag, jlong value) { return android_btWriteLog(tag, EVENT_TYPE_LONG, &value, sizeof(value)); @@ -64,7 +68,8 @@ static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, * In class android.util.EventLog: * static native int writeEvent(int tag, String value) */ -static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz, +static jint android_util_EventLog_writeEvent_String(JNIEnv* env, + jobject clazz UNUSED, jint tag, jstring value) { uint8_t buf[MAX_EVENT_PAYLOAD]; @@ -144,7 +149,7 @@ static jint android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, * * Reads events from the event log */ -static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz, +static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz UNUSED, jintArray tags, jobject out) { |