From 551c6018c84dc68716167b998da34651eab6aa3a Mon Sep 17 00:00:00 2001 From: Neill Kapron Date: Fri, 4 Oct 2024 15:54:26 +0000 Subject: [PATCH] init/epoll: clean up reorder-init-list warning This change cleans up the following build warning: warning: ISO C++ requires field designators to be specified in declaration order; field 'events' will be initialized after field 'handler' [-Wreorder-init-list] Bug: none Test: TH Change-Id: I9fe566b452438dc9f00f782fc4435905227a60c9 Signed-off-by: Neill Kapron --- init/epoll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/epoll.cpp b/init/epoll.cpp index cd73a0c3d..719a53271 100644 --- a/init/epoll.cpp +++ b/init/epoll.cpp @@ -47,8 +47,8 @@ Result Epoll::RegisterHandler(int fd, Handler handler, uint32_t events) { auto [it, inserted] = epoll_handlers_.emplace( fd, Info{ - .events = events, .handler = std::move(handler), + .events = events, }); if (!inserted) { return Error() << "Cannot specify two epoll handlers for a given FD";