瀏覽代碼

LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms

davidot 3 年之前
父節點
當前提交
f151a0d720
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);
     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
 }
 }