diff options
Diffstat (limited to 'nihil/open_file.ccm')
| -rw-r--r-- | nihil/open_file.ccm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nihil/open_file.ccm b/nihil/open_file.ccm index 89af4e6..1333785 100644 --- a/nihil/open_file.ccm +++ b/nihil/open_file.ccm @@ -18,8 +18,8 @@ namespace nihil { /* * Open the given file and return an fd for it. */ -export auto open_file(std::filesystem::path const &filename, - int flags, int mode = 0777) +export [[nodiscard]] auto open_file(std::filesystem::path const &filename, + int flags, int mode = 0777) -> std::expected<fd, error>; } // namespace nihil |
