io/FileDescriptor: add [[nodiscard]]
This commit is contained in:
committed by
Max Kellermann
parent
3e862b85d4
commit
b63a794fbe
@@ -97,8 +97,7 @@ OssMixer::Close() noexcept
|
||||
void
|
||||
OssMixer::Open()
|
||||
{
|
||||
device_fd.OpenReadOnly(device);
|
||||
if (!device_fd.IsDefined())
|
||||
if (!device_fd.OpenReadOnly(device))
|
||||
throw FmtErrno("failed to open {}", device);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user