summaryrefslogtreecommitdiff
path: root/libs/input/InputDevice.cpp
diff options
context:
space:
mode:
author Frank Barchard <fbarchard@google.com> 2017-03-06 11:17:52 -0800
committer Frank Barchard <fbarchard@google.com> 2017-03-06 17:42:05 -0800
commit9e94788e8a8388eeb1113dc42c932ed42008de5d (patch)
treeed7dbc59ba515bc93ca6a48040f3c902991d234d /libs/input/InputDevice.cpp
parentd07fc91a3e574f28f8ac0829dfacc772255f3e11 (diff)
InputDevice warning fixes and make warnigs into Error
use const char * for string literals in InputDevice Remove unused variable in Keyboard Bug: 35993509 Test: mm in frameworks/native/libs/input builds without the warning Change-Id: I11242835eae855386c47e56d6c36e5a2f912a28f
Diffstat (limited to 'libs/input/InputDevice.cpp')
-rw-r--r--libs/input/InputDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/InputDevice.cpp b/libs/input/InputDevice.cpp
index 9d761fd824..4287abeb7d 100644
--- a/libs/input/InputDevice.cpp
+++ b/libs/input/InputDevice.cpp
@@ -90,7 +90,7 @@ String8 getInputDeviceConfigurationFilePathByName(
String8 path;
// Treblized input device config files will be located /odm/usr or /vendor/usr.
- char *rootsForPartition[] {"/odm", "/vendor", getenv("ANDROID_ROOT")};
+ const char *rootsForPartition[] {"/odm", "/vendor", getenv("ANDROID_ROOT")};
for (size_t i = 0; i < size(rootsForPartition); i++) {
path.setTo(rootsForPartition[i]);
path.append("/usr/");