summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2014-11-25 19:03:50 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-25 19:03:50 +0000
commitb30866681475aff8fd23841dbadf1d39e0001e20 (patch)
tree6ef324f8cbe23c6e78933f18f5ddaa978fe9db43 /services
parent0551ae80ebc0ce078826d4ab48bcb076b3523651 (diff)
parent6cc39a475dd8eaac04438b393559612ff7cd840f (diff)
downloadframeworks_base-b30866681475aff8fd23841dbadf1d39e0001e20.zip
frameworks_base-b30866681475aff8fd23841dbadf1d39e0001e20.tar.gz
frameworks_base-b30866681475aff8fd23841dbadf1d39e0001e20.tar.bz2
am 6cc39a47: am 613d2066: Merge "Fix unused variables."
* commit '6cc39a475dd8eaac04438b393559612ff7cd840f': Fix unused variables.
Diffstat (limited to 'services')
-rw-r--r--services/core/jni/com_android_server_input_InputApplicationHandle.cpp1
-rw-r--r--services/core/jni/com_android_server_input_InputManagerService.cpp1
-rw-r--r--services/core/jni/com_android_server_input_InputWindowHandle.cpp1
-rw-r--r--services/core/jni/com_android_server_power_PowerManagerService.cpp1
4 files changed, 4 insertions, 0 deletions
diff --git a/services/core/jni/com_android_server_input_InputApplicationHandle.cpp b/services/core/jni/com_android_server_input_InputApplicationHandle.cpp
index f943d16..11388d8 100644
--- a/services/core/jni/com_android_server_input_InputApplicationHandle.cpp
+++ b/services/core/jni/com_android_server_input_InputApplicationHandle.cpp
@@ -137,6 +137,7 @@ static JNINativeMethod gInputApplicationHandleMethods[] = {
int register_android_server_InputApplicationHandle(JNIEnv* env) {
int res = jniRegisterNativeMethods(env, "com/android/server/input/InputApplicationHandle",
gInputApplicationHandleMethods, NELEM(gInputApplicationHandleMethods));
+ (void) res; // Faked use when LOG_NDEBUG.
LOG_FATAL_IF(res < 0, "Unable to register native methods.");
jclass clazz;
diff --git a/services/core/jni/com_android_server_input_InputManagerService.cpp b/services/core/jni/com_android_server_input_InputManagerService.cpp
index 5d73af8..7c5980a 100644
--- a/services/core/jni/com_android_server_input_InputManagerService.cpp
+++ b/services/core/jni/com_android_server_input_InputManagerService.cpp
@@ -1416,6 +1416,7 @@ static JNINativeMethod gInputManagerMethods[] = {
int register_android_server_InputManager(JNIEnv* env) {
int res = jniRegisterNativeMethods(env, "com/android/server/input/InputManagerService",
gInputManagerMethods, NELEM(gInputManagerMethods));
+ (void) res; // Faked use when LOG_NDEBUG.
LOG_FATAL_IF(res < 0, "Unable to register native methods.");
// Callbacks
diff --git a/services/core/jni/com_android_server_input_InputWindowHandle.cpp b/services/core/jni/com_android_server_input_InputWindowHandle.cpp
index 46ec1f4..01c51cf 100644
--- a/services/core/jni/com_android_server_input_InputWindowHandle.cpp
+++ b/services/core/jni/com_android_server_input_InputWindowHandle.cpp
@@ -227,6 +227,7 @@ static JNINativeMethod gInputWindowHandleMethods[] = {
int register_android_server_InputWindowHandle(JNIEnv* env) {
int res = jniRegisterNativeMethods(env, "com/android/server/input/InputWindowHandle",
gInputWindowHandleMethods, NELEM(gInputWindowHandleMethods));
+ (void) res; // Faked use when LOG_NDEBUG.
LOG_FATAL_IF(res < 0, "Unable to register native methods.");
jclass clazz;
diff --git a/services/core/jni/com_android_server_power_PowerManagerService.cpp b/services/core/jni/com_android_server_power_PowerManagerService.cpp
index db642dd..6dcdd9d 100644
--- a/services/core/jni/com_android_server_power_PowerManagerService.cpp
+++ b/services/core/jni/com_android_server_power_PowerManagerService.cpp
@@ -189,6 +189,7 @@ static JNINativeMethod gPowerManagerServiceMethods[] = {
int register_android_server_PowerManagerService(JNIEnv* env) {
int res = jniRegisterNativeMethods(env, "com/android/server/power/PowerManagerService",
gPowerManagerServiceMethods, NELEM(gPowerManagerServiceMethods));
+ (void) res; // Faked use when LOG_NDEBUG.
LOG_FATAL_IF(res < 0, "Unable to register native methods.");
// Callbacks