浏览代码

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]].
Sam Atkins 3 年之前
父节点
当前提交
f3d8f80e9c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp

+ 1 - 1
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<Messages::@endpoint.name@::@message.pascal_name@>(");