Skip to content

Commit

Permalink
DevCachefiles: add [[nodiscard]]
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Nov 29, 2024
1 parent b2edddb commit 3083a05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DevCachefiles.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class DevCachefiles {
FileDescriptor fd;

public:
[[nodiscard]]
explicit DevCachefiles(FileDescriptor _fd) noexcept
:fd(_fd) {}

Expand All @@ -30,5 +31,6 @@ public:
ERROR,
};

[[nodiscard]]
CullResult CullFile(std::string_view filename) noexcept;
};

0 comments on commit 3083a05

Please sign in to comment.