Commit 6170e28
committed
Fix build error in UE5
error message:
In file included from /home/xxxx/UnrealProjects/ROSDemo/Plugins/ROSIntegration/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/ROSIntegration/Module.ROSIntegration.cpp:48:
/home/xxxx/UnrealProjects/ROSDemo/Plugins/ROSIntegration/Source/ROSIntegration/Private/rosbridge2cpp/ros_bridge.cpp:31:18: error: passing 4-byte aligned argument to 128-byte aligned parameter 1 of 'bson_destroy' may result in an unaligned pointer access [-Werror,-Walign-mismatch]
bson_destroy(queue.front());
^
/home/xxxx/UnrealProjects/ROSDemo/Plugins/ROSIntegration/Source/ROSIntegration/Private/rosbridge2cpp/ros_bridge.cpp:136:18: error: passing 4-byte aligned argument to 128-byte aligned parameter 1 of 'bson_destroy' may result in an unaligned pointer access [-Werror,-Walign-mismatch]
bson_destroy(queue.front());1 parent d0018d5 commit 6170e28
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
0 commit comments