From f3d8f80e9cca9b18362e8a727cf2bdedeb1fe0f8 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 2 Dec 2021 12:10:28 +0000 Subject: IPCCompiler: Cast return value of synchronous void IPC calls to void The synchronous call returns a NonnullOwnPtr that we don't use, so we have to cast to prevent a compiler warning once smart pointers become [[nodiscard]]. --- Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Meta/Lagom/Tools') diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp index 315c6254f7..0abc3bc693 100644 --- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp @@ -544,7 +544,7 @@ public: message_generator.append("move(*"); } else { message_generator.append(R"~~~( - )~~~"); + (void) )~~~"); } message_generator.append("m_connection.template send_sync("); -- cgit v1.2.3