summaryrefslogtreecommitdiffstats
path: root/services/jni
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2013-04-19 17:39:04 -0700
committerTodd Poynor <toddpoynor@google.com>2013-04-22 18:16:17 -0700
commitb2bb9f623231e9d77ab2c1999eb39ba0156a04c6 (patch)
treeb69fb770f96d65510ab388a20c8de93c5b4517a0 /services/jni
parenta6017bc4bfb64b743ab74ec35925d060a90bd237 (diff)
downloadframeworks_base-b2bb9f623231e9d77ab2c1999eb39ba0156a04c6.zip
frameworks_base-b2bb9f623231e9d77ab2c1999eb39ba0156a04c6.tar.gz
frameworks_base-b2bb9f623231e9d77ab2c1999eb39ba0156a04c6.tar.bz2
BatteryService: Fix compile warning
Add unhandled enum constant in switch. Change-Id: I3c7635d9cf1fa1e57b139b9b66103bf660afe3a4
Diffstat (limited to 'services/jni')
-rw-r--r--services/jni/com_android_server_BatteryService.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/jni/com_android_server_BatteryService.cpp b/services/jni/com_android_server_BatteryService.cpp
index 089ba4b..0c8b4a5 100644
--- a/services/jni/com_android_server_BatteryService.cpp
+++ b/services/jni/com_android_server_BatteryService.cpp
@@ -371,6 +371,9 @@ int register_android_server_BatteryService(JNIEnv* env)
if (access(path, R_OK) == 0)
gPaths.batteryTechnologyPath = path;
break;
+
+ case ANDROID_POWER_SUPPLY_TYPE_UNKNOWN:
+ break;
}
}
closedir(dir);