mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms
This commit is contained in:
parent
f7c0cdcc19
commit
f151a0d720
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);
|
file = File(fd, File::ConstructWithReceivedFileDescriptor);
|
||||||
return {};
|
return {};
|
||||||
#else
|
#else
|
||||||
|
[[maybe_unused]] auto fd = m_sockfd;
|
||||||
return Error::from_string_literal("File descriptor passing not supported on this platform");
|
return Error::from_string_literal("File descriptor passing not supported on this platform");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue