Skip to content

Commit f7d06e9

Browse files
async: fdio: remove unused member
clang warns about an unused private field ('fd') because it is a capture-only member. There isn't any reason to keep the fd around once the underlying sd_event has been created, so remove it as a member. Signed-off-by: Patrick Williams <[email protected]> Change-Id: I176b2c4b53bbd7e4bb4bc9a9594f5816ee1bda2e
1 parent cd3bf08 commit f7d06e9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/sdbusplus/async/fdio.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class fdio : private context_ref, details::context_friend
3434
friend fdio_ns::fdio_completion;
3535

3636
private:
37-
int fd;
3837
event_source_t source;
3938
std::mutex lock{};
4039
fdio_ns::fdio_completion* complete{nullptr};

src/async/fdio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace sdbusplus::async
44
{
5-
fdio::fdio(context& ctx, int fd) : context_ref(ctx), fd(fd)
5+
fdio::fdio(context& ctx, int fd) : context_ref(ctx)
66
{
77
static auto eventHandler =
88
[](sd_event_source*, int, uint32_t, void* data) noexcept {

0 commit comments

Comments
 (0)