LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms
This commit is contained in:
parent
f7c0cdcc19
commit
f151a0d720
Notes:
sideshowbarker
2024-07-18 00:32:38 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/f151a0d7205 Pull-request: https://github.com/SerenityOS/serenity/pull/11123
1 changed files with 1 additions and 0 deletions
|
@ -167,6 +167,7 @@ ErrorOr<void> Decoder::decode([[maybe_unused]] File& file)
|
|||
file = File(fd, File::ConstructWithReceivedFileDescriptor);
|
||||
return {};
|
||||
#else
|
||||
[[maybe_unused]] auto fd = m_sockfd;
|
||||
return Error::from_string_literal("File descriptor passing not supported on this platform");
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue