OSDN Git Service

BatteryService: Fix compile warning
authorTodd Poynor <toddpoynor@google.com>
Sat, 20 Apr 2013 00:39:04 +0000 (17:39 -0700)
committerTodd Poynor <toddpoynor@google.com>
Tue, 23 Apr 2013 01:16:17 +0000 (18:16 -0700)
Add unhandled enum constant in switch.

Change-Id: I3c7635d9cf1fa1e57b139b9b66103bf660afe3a4

services/jni/com_android_server_BatteryService.cpp

index 089ba4b..0c8b4a5 100644 (file)
@@ -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);