Procházet zdrojové kódy

LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms

davidot před 3 roky
rodič
revize
f151a0d720
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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
 }