diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-05 02:42:56 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-05 02:42:56 +0000 |
commit | 78a3233313260665fe82ba56257855e043bca3d4 (patch) | |
tree | 46622bf088b3f30d2c6d8a5b548519137c88c867 /runtime/native_bridge_art_interface.cc | |
parent | fe50a0f644bf57a92612d08ad21dc4ea5a2f652a (diff) | |
parent | 277ccbd200ea43590dfc06a93ae184a765327ad0 (diff) | |
download | art-78a3233313260665fe82ba56257855e043bca3d4.tar.gz art-78a3233313260665fe82ba56257855e043bca3d4.tar.bz2 art-78a3233313260665fe82ba56257855e043bca3d4.zip |
Merge "ART: More warnings"
Diffstat (limited to 'runtime/native_bridge_art_interface.cc')
-rw-r--r-- | runtime/native_bridge_art_interface.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/native_bridge_art_interface.cc b/runtime/native_bridge_art_interface.cc index c8e1e6ecdb..c2c6b12037 100644 --- a/runtime/native_bridge_art_interface.cc +++ b/runtime/native_bridge_art_interface.cc @@ -26,7 +26,7 @@ namespace art { -const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { +static const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { ScopedObjectAccess soa(env); StackHandleScope<1> scope(soa.Self()); mirror::ArtMethod* m = soa.DecodeMethod(mid); @@ -34,7 +34,7 @@ const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { return mh.GetShorty(); } -uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz) { +static uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz) { if (clazz == nullptr) return 0; @@ -57,8 +57,8 @@ uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz) { return native_method_count; } -uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, - uint32_t method_count) { +static uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, + uint32_t method_count) { if ((clazz == nullptr) || (methods == nullptr)) { return 0; } |