mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
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: f151a0d720
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);
|
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