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
Notes: sideshowbarker 2024-07-18 00:32:38 +09:00

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
}