mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 14:17:35 +08:00
mavlink: increase optimization to ${MAX_CUSTOM_OPT_LEVEL}
- MAX_CUSTOM_OPT_LEVEL is -O2 on boards that aren't flash constrained
This commit is contained in:
@@ -37,6 +37,7 @@ px4_add_module(
|
||||
MODULE modules__mavlink
|
||||
MAIN mavlink
|
||||
COMPILE_FLAGS
|
||||
${MAX_CUSTOM_OPT_LEVEL}
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
-Wno-enum-compare # ROTATION <-> MAV_SENSOR_ROTATION
|
||||
|
||||
Reference in New Issue
Block a user