ipc: Pack ipc message structs to make valgrind happy

This commit is contained in:
Christoph Haag 2021-10-26 23:19:39 +02:00
parent 0dee9094b3
commit 13f7fa3b82

View file

@ -66,6 +66,8 @@ ipc_cmd_to_str(ipc_command_t id)
f.write("\n\tdefault: return \"IPC_UNKNOWN\";")
f.write("\n\t}\n}\n")
f.write("#pragma pack (push, 1)")
for call in p.calls:
# Should we emit a msg struct.
if call.needs_msg_struct:
@ -87,6 +89,8 @@ ipc_cmd_to_str(ipc_command_t id)
f.write("\t" + arg.get_struct_field() + ";\n")
f.write("};\n")
f.write("#pragma pack (pop)")
f.close()