summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-06-28 14:43:25 -0700
committer Siarhei Vishniakou <svv@google.com> 2023-06-29 05:12:32 +0000
commitcac842765a5bed53b7888bbd6017bba7eeb373a8 (patch)
treeb0367e7330ab7d2dee670409208b12c00d77a97a /services/inputflinger/InputManager.cpp
parentde1bf9ef6af44f5d6b128d5e828a1c3bfc98c180 (diff)
Build libinputflinger for host
We don't have a usecase for it today, but the main motivation here is to unify the target and host build parameters. Also, this exposed an issue where ::write wasn't wrapped. The host build produced an error: frameworks/native/services/inputflinger/InputManager.cpp:189:5: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] ::write(fd, dump.c_str(), dump.size()); Bug: 271455682 Test: m libinputflinger Change-Id: If1abc85b230f8e928422dab4c6bb33834b6393ee
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index 1a9f47d934..09c88ba8dd 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -186,7 +186,7 @@ status_t InputManager::dump(int fd, const Vector<String16>& args) {
dump += " InputFlinger dump\n";
- ::write(fd, dump.c_str(), dump.size());
+ TEMP_FAILURE_RETRY(::write(fd, dump.c_str(), dump.size()));
return NO_ERROR;
}