summaryrefslogtreecommitdiffstats
path: root/test/051-thread
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-11-07 13:07:00 +0000
committerNarayan Kamath <narayan@google.com>2014-11-07 13:11:32 +0000
commit26f72dfcb3073e311f5b3e4cb5677081de558502 (patch)
treef3c4af465139454551e428373a8f832f897e9fd0 /test/051-thread
parenta0b34518cf3f3801407624d95846f8ff90c05d25 (diff)
downloadart-26f72dfcb3073e311f5b3e4cb5677081de558502.zip
art-26f72dfcb3073e311f5b3e4cb5677081de558502.tar.gz
art-26f72dfcb3073e311f5b3e4cb5677081de558502.tar.bz2
Fix build.
This is due to CFLAGS differences between branches. Change-Id: I170ac59401c10b394dd6b2c9eac167869d926fdc
Diffstat (limited to 'test/051-thread')
-rw-r--r--test/051-thread/thread_test.cc8
1 files changed, 6 insertions, 2 deletions
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