From 665bb6a5202ad0ca30e60bec338ca65853c1b131 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 28 Apr 2026 22:42:48 +0200 Subject: Make clang-tidy happy --- src/unique_fd.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/unique_fd.hh') 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_; } -- cgit v1.3