mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-01 11:28:28 +00:00
ipc: Pack ipc message structs to make valgrind happy
This commit is contained in:
parent
0dee9094b3
commit
13f7fa3b82
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue