io/FileDescriptor: add [[nodiscard]]
This commit is contained in:

committed by
Max Kellermann

parent
3e862b85d4
commit
b63a794fbe
@@ -23,7 +23,7 @@ static inline UniqueFileDescriptor
|
||||
OpenFile(Path file, int flags, int mode)
|
||||
{
|
||||
UniqueFileDescriptor fd;
|
||||
fd.Open(file.c_str(), flags, mode);
|
||||
(void)fd.Open(file.c_str(), flags, mode);
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user