diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2026-04-28 22:42:48 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2026-04-28 22:43:08 +0200 |
| commit | 665bb6a5202ad0ca30e60bec338ca65853c1b131 (patch) | |
| tree | 4d938a3f1bc3160ac065d9a437f2c1b6eb724864 /src/unique_fd.hh | |
| parent | 2f43e9123dc406112d0802a82698cd124f42a794 (diff) | |
Make clang-tidy happy
Diffstat (limited to 'src/unique_fd.hh')
| -rw-r--r-- | src/unique_fd.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unique_fd.hh b/src/unique_fd.hh index 2950905..3668f79 100644 --- a/src/unique_fd.hh +++ b/src/unique_fd.hh @@ -17,7 +17,10 @@ class unique_fd { bool operator==(unique_fd const& fd) const { return get() == fd.get(); } bool operator!=(unique_fd const& fd) const { return get() != fd.get(); } - int get() const { return fd_; } + [[nodiscard]] + int get() const { + return fd_; + } explicit operator bool() const { return fd_ != -1; } int operator*() const { return fd_; } |
