From f151a0d72057f9ce2be459e4c4fab9093f349ffe Mon Sep 17 00:00:00 2001 From: davidot Date: Mon, 29 Nov 2021 10:33:38 +0100 Subject: [PATCH] LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms --- Userland/Libraries/LibIPC/Decoder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibIPC/Decoder.cpp b/Userland/Libraries/LibIPC/Decoder.cpp index edc0ea38f3..19fc53ef5a 100644 --- a/Userland/Libraries/LibIPC/Decoder.cpp +++ b/Userland/Libraries/LibIPC/Decoder.cpp @@ -167,6 +167,7 @@ ErrorOr 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 }