From 26f72dfcb3073e311f5b3e4cb5677081de558502 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Fri, 7 Nov 2014 13:07:00 +0000 Subject: Fix build. This is due to CFLAGS differences between branches. Change-Id: I170ac59401c10b394dd6b2c9eac167869d926fdc --- test/051-thread/thread_test.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/051-thread') diff --git a/test/051-thread/thread_test.cc b/test/051-thread/thread_test.cc index 2f5fffc..2b8e675 100644 --- a/test/051-thread/thread_test.cc +++ b/test/051-thread/thread_test.cc @@ -14,16 +14,20 @@ * limitations under the License. */ +#include "base/macros.h" #include "jni.h" #include "thread-inl.h" namespace art { -extern "C" JNIEXPORT jint JNICALL Java_Main_getNativePriority(JNIEnv* env, jclass) { +extern "C" JNIEXPORT jint JNICALL Java_Main_getNativePriority(JNIEnv* env, + jclass clazz ATTRIBUTE_UNUSED) { return ThreadForEnv(env)->GetNativePriority(); } -extern "C" JNIEXPORT jboolean JNICALL Java_Main_supportsThreadPriorities(JNIEnv* env, jclass) { +extern "C" JNIEXPORT jboolean JNICALL Java_Main_supportsThreadPriorities( + JNIEnv* env ATTRIBUTE_UNUSED, + jclass clazz ATTRIBUTE_UNUSED) { #if defined(HAVE_ANDROID_OS) return JNI_TRUE; #else -- cgit v1.1