From cac842765a5bed53b7888bbd6017bba7eeb373a8 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 28 Jun 2023 14:43:25 -0700 Subject: 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 --- services/inputflinger/InputManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/inputflinger/InputManager.cpp') 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& 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; } -- cgit v1.2.3-59-g8ed1b