Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 551c6018 authored by Neill Kapron's avatar Neill Kapron
Browse files

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: default avatarNeill Kapron <nkapron@google.com>
parent aa56f29f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,8 +47,8 @@ Result<void> 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";