Pārlūkot izejas kodu

LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms

davidot 3 gadi atpakaļ
vecāks
revīzija
f151a0d720
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Userland/Libraries/LibIPC/Decoder.cpp

+ 1 - 0
Userland/Libraries/LibIPC/Decoder.cpp

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