1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms

This commit is contained in:
davidot 2021-11-29 10:33:38 +01:00 committed by Brian Gianforcaro
parent f7c0cdcc19
commit f151a0d720

View file

@ -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
}